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
Which java ide is used the most?
What is void keyword?
What do you mean by JVM?
What was java originally called?
What is size of int in java?
What is console based application in java?
What is a buffer in java?
Which access specifier can be used with class ?
What are basic keywords?
What is main string [] args?
What is double in java?
How do you replace all in word?
Why strings in java are called as immutable?
How many classes can any class inherit java?
Can you achieve runtime polymorphism by data members?