Which of the following is true about super class in Java?
Choose the correct option from below list
(1)Variables, methods and constructors which are declared private can be accessed only by the members of the super class.
(2)Variables, methods and constructors which are declared protected can be accessed by any subclass of the super class.
(3)Variables, methods and constructors which are declared public in the superclass can be accessed by any class.
(4)All of the above
Answer:-(4)All of the above | |