Child cObj = new Parent()
Wahts the output ?
Answer Posted / deepthi
An error. We cant create such kinda objects.
| Is This Answer Correct ? | 20 Yes | 5 No |
Post New Answer View All Answers
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is encapsulation example?
What is oops in simple words?
write string class as your own class in java without using any built-in function
What is abstraction in oops?
What is inheritance and how many types of inheritance?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is polymorphism and why is it important?
program for insertion ,deletion,sorting in double link list
What are constructors in oop?
What are the three parts of a simple empty class?
What is byval and byref? What are differences between them?
What are the 5 oop principles?
any one please tell me the purpose of operator overloading
What is the important feature of inheritance?