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 does java enable high performance?
What is the original name of java?
Define a java class.
Where to store local variables?
What is difference between path and classpath?
Why volatile is used in java?
How use .contains in java?
Explain garbage collection in java?
How do you access command-line arguments within the code?
Can a class have more than one object?
What is procedure overloading?
What are the object and class classes used for?
Explain java code for recursive solution's base case?
Can we increase array size dynamically in java?
What is anagram in java?