Child cObj = new Parent()
Wahts the output ?
Answer Posted / austin j seelan
Child cObj = new Parent()
This will through the compiletime error.
but we can create an instance like the foll.way
parent objparent = new child()
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is and I oop mean?
What is the difference between abstraction and polymorphism?
can we make game by using c
Why do we use polymorphism?
What is oops with example?
What are the benefits of polymorphism?
What is polymorphism used for?
What is oops?what is its use in software engineering?
What do you mean by variable?
What exactly is polymorphism?
What is abstraction in oops?
What are the data types in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is the example of polymorphism?
What does I oop mean?