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

Write a program to sort the number with different sorts in one program ??

2324


when to use 'mutable' keyword and when to use 'const cast' in c++

2110


What are the features of oop?

1094


Can static class have constructor?

984


What are the 4 pillars of oop?

1089


What are different oops concepts?

1000


What is object in oop?

1061


write knight tour problem which is present in datastructure

2597


Whats is abstraction in oops?

1022


What is abstraction in oop with example?

1061


What is persistence in oop?

1094


What are the components of marker interface?

996


How Do you Code Composition and Aggregation in C++ ?

25260


How do you explain polymorphism?

1014


Can main method override?

1060