Inheritance

This commit is contained in:
2024-09-18 20:28:26 +02:00
parent 9534ee8156
commit 4908d26105
10 changed files with 73 additions and 0 deletions

View File

@ -8,5 +8,18 @@ public class Main {
Pupil pupil = new Pupil();
pupil.setAge(a);
Standard standard1 = new Standard();
Pro pro1 = new Pro();
//standard version
standard1.draw();
standard1.write();
//Pro version
pro1.draw();
pro1.write();
pro1.useEffects();
pro1.changeResolution();
}
}