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