Child cObj = new Parent()
Wahts the output ?
Answer Posted / aditya
Its java syntax where there is no pointers.
So its dynamic method dispatch which is same as virtual
functions of c++.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why multiple inheritance is not allowed?
What is polymorphism explain?
What are the two different types of polymorphism?
What is static modifier?
class type to basic type conversion
What are the types of abstraction?
What is multilevel inheritance explain with example?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
How does polymorphism work?
What is abstraction and encapsulation?
What is encapsulation in simple terms?
What does sksksk mean in text slang?
What is polymorphism and its types?
What is multilevel inheritance?
Why we use classes in oop?