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
Explain about main thread in java?
What are different data types?
How do you replace all in word?
What is a null check?
Can java inner class be static?
What data type is a string?
Can a final variable be initialized in constructor?
Which class is used by server applications to obtain a port and listen for client requests?
What is oops in java?
What is natural ordering in java?
What is the purpose of tostring() method in java?
What are the Main functions of Java?
What is method overloading and method overriding?
What do you mean by global variable?
What is port number in java?