Child cObj = new Parent()
Wahts the output ?

Answer Posted / bangarraju

This is the DownCasting,but using like this
Child* obj=down_cast<Child* >(Parent) either using RTTI
mechanism in C++

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is data hiding and abstraction same?

569


Why oops is important?

614


what is the 3 types of system development life cycle

2435


Can a destructor be called directly?

603


How is class defined?

588






What is the point of polymorphism?

588


What is encapsulation in oops?

536


What are main features of oop?

633


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1657


Can you explain polymorphism?

583


What type of loop is a for loop?

682


What is oops and why we use oops?

573


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1541


What is class and example?

569


Is oop better than procedural?

574