Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is cohesion in oop?

1062


What is a superclass in oop?

1175


What is the types of inheritance?

1098


Why is polymorphism used?

1040


What is difference between multiple inheritance and multilevel inheritance?

1150


Why do pointers exist?

1097


Can we create object of abstract class?

1098


How do you answer polymorphism?

1062


What is oops and its features?

1083


What is encapsulation and abstraction? How are they implemented in C++?

1140


What is difference between data abstraction and encapsulation?

1085


What is the oops and benefits of oops programming?

976


Advantage and disadvantage of routing in telecom sector

1307


What is the significance of classes in oop?

1159


What is the diamond problem in inheritance?

1139