Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ParentClass {
- private int field1;
- protected char field2;
- public void method1() {
- System.out.println(field1);
- }
- protected void method2() {
- System.out.println(field2);
- }
- }
- class QuestionClass extends ParentClass {
- public void method3() {
- System.out.println("QuestionClass#method3()");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement