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
Can we extend a class with private constructor?
Which sorting algorithm is in place?
Why do we need array in java?
What is a short in java?
What is class??
What is the difference between instanceof and isinstance?
Discuss 2D arrays.
What is the collections api in java programming?
How many digits can a float hold?
Is null or empty java?
Can singleton class be serialized?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What is use of set in java?
What is the independent variable in an experiment?
What is a file pointer?