add EncapsulationInheritancePolymorphism

This commit is contained in:
Oleksii Aleshchenko
2023-02-16 16:10:38 +02:00
parent f4fbabe6e5
commit 81947f9b29
6 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package encapsulationInheritancePolymorphism;
public class Student {
private String name;
private String surname;
public String getName() {
return name;
}
}