Child cObj = new Parent()
Wahts the output ?
Answer Posted / chetan
it will execute without an error. if Parent class is
parent/base class and child is the child/drive class which
inherit parent class.
In the other worlds you are invoking drive class method with
the reference of base class.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is oops?what is its use in software engineering?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is encapsulation in oops?
Which type does string inherit from?
What is difference between polymorphism and inheritance?
How do you achieve polymorphism?
Templates mean
What is the purpose of polymorphism?
What is for loop and its syntax?
What is the use of oops?
What is interface? When and where is it used?
What does <> mean pseudocode?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is overriding in oops?
How do you use inheritance in unity?