1
2
//Base class or Superclass
class ParentClass {
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run (Ctrl-Enter)
-
Output -
Runtime error -
Build error -
Input
( sec)
Main.java:24: error: displayfunc() has private access in ParentClass
parentObject.displayfunc(); // this line when execute will throw compiler error
^
Main.java:27: error: displayfunc() has private access in ParentClass
childObject.displayfunc(); // this line when execute will throw compiler error
^
2 errors