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

It will give yo Error :-
Object reference not set to an instance of an object.


If you want to create object then

Child cObj = new Child()
this is the right way

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can bst contain duplicates?

1142


Why do we use polymorphism in oops?

983


Get me a number puzzle game-program

2181


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

1066


What is multilevel inheritance explain with example?

1089


What is difference between data abstraction and encapsulation?

1032


what are the different types of qualifier in java?

2217


What are the 3 principles of oop?

1054


What is polymorphism what are the different types of polymorphism?

947


What is polymorphism explain its types?

1099


Can a varargs method be overloaded?

1038


What is the main feature of oop?

1097


What is object in oop?

1061


What is a superclass in oop?

1109


What is overloading in oops?

1092