Revert "Done lab 1-3"

This reverts commit 29e63163a4.
This commit is contained in:
Oleksii Aleshchenko
2023-04-04 22:33:00 +03:00
parent 1e6825d7d4
commit 81ac59840f
48 changed files with 605 additions and 205 deletions
@@ -0,0 +1,20 @@
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);
}
}