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
Is a class subclass of itself?
What is the format specifier?
Explain different states of a thread in java?
What is a qualifier in a sentence?
What is the symbol for average?
How to perform quicksort in java?
What does provide mean construction?
What is hashmap in java?
What is the use of singleton class?
Differentiate between postfix and prefix operators in java.
Tell me the Importent classes in net package?
What are the drawbacks of reflection?
Can we override the private methods?
How can a gui component handle its own events in java programming?
What is the difference between exception and error in java?