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

What is java and why do we need it? Explain

581


Can we initialize the final blank variable?

578


What is style and indentation?

546


Give me an example of array and linked list? Where they can be used?

549


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

535






What is constructor chaining and how is it achieved in java?

564


What is the replace tool?

545


Explain the usage of this with constructors?

522


Is java 11 paid version?

506


Is constructor inherited?

528


Is string is a data type in java?

587


Is java ee a framework?

516


Which container method is used to cause a container to be laid out and redisplayed in java programming?

592


What are the types of sockets in java?

538


Differentiate between nested and inner class in java.

549