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
How many types of methods are there in java?
What is difference between filereader and bufferedreader?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is reflexive association?
What is arguments in java?
What is remote method invocation (rmi)?
Where is singleton pattern used?
Is 9 a prime number?
Define interface in java?
Is string is a data type?
What is the difference between post and put?
Can you explain inner class.
Name few "optional" classes introduced with java 8 ?
how are methods defined?
Is string is a keyword in java?