can we access the super class method using subclass object?

Answer Posted / azeem

Yes, you can acess the super class method by using the
subclass object because the super class methods are visible
to subclasses if not overriden. If the method is overriden,
then acess the super class method by using super.methodname

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can generate random numbers in java?

856


How do you declare an array in java?

739


Can we override compareto method?

717


Explain about arraylist?

768


Can we execute a program without main?

741


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

848


What are white spaces in java?

737


What are the features of junit?

812


What do you understand by access specifiers in Java?

783


when you will synchronize a piece of your code? : Java thread

749


How can we create an immutable class in java?

798


What isan abstract class and when do you use it?

1172


What are the different conditional statements?

747


What are methods and how are they defined?

861


Can we have any other return type than void for main method?

746