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 / 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


Please Help Members By Posting Answers For Below Questions

What is oops with example?

1058


When not to use object oriented programming?

1119


Why multiple inheritance is not allowed?

1168


What is constructor overloading in oop?

1145


What is abstraction in oop?

1140


Is abstract thinking intelligence?

1057


What is interface? When and where is it used?

2172


What is the highest level of cohesion?

1057


Why is encapsulation used?

1002


Why is abstraction needed?

1046


How does polymorphism work?

1149


What is abstraction and encapsulation?

1027


What are objects in oop?

1114


How is class defined?

1151


What is a class and object?

1059