mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2026-04-02 13:31:51 +03:00
add EncapsulationInheritancePolymorphism
This commit is contained in:
10
src/encapsulationInheritancePolymorphism/Student.java
Normal file
10
src/encapsulationInheritancePolymorphism/Student.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package encapsulationInheritancePolymorphism;
|
||||
|
||||
public class Student {
|
||||
private String name;
|
||||
private String surname;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user