can we access the super class method using subclass object?
Answer Posted / naveen kumar t
If A is the super class and B is the subclass
inside subclass :
A a = new B();
a.methodA();
Here the methodA() should not be private.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Are arrays static in java?
What is a double?
Can we assign the reference to this variable?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
How do you compare objects in java?
Is char * a string?
What is the exception hierarchy in java?
What is the size of integer?
Name four container classes.
Which collection is thread safe in java?
Which non-unicode letter characters may be used as the first character of an identifier?
What is collection class in java? List down its methods and interfaces.
What does singleton mean in java?
What is the collections api?
What is difference between static class and singleton pattern?