Done lab 1-3

This commit is contained in:
xivihwa
2023-04-04 17:40:44 +03:00
parent 399941844f
commit 29e63163a4
48 changed files with 205 additions and 605 deletions
@@ -1,20 +0,0 @@
package encapsulationInheritancePolymorphism;
public class Encapsulation {
/*private*/ int field;
private int field2;
// int a = 1;
public void myMethodForTheField () {
System.out.println(field);
}
public void myMethodForTheField2 () {
System.out.println(field);
}
public void myMethodForTheFieldAndTheField2 () {
System.out.println(field);
}
}