UrbanPro
true

Learn C++ Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Upcasting and Downcasting

Vijay Kumar
24/05/2017 0 0

Converting a derived-class reference or pointer to a base-class reference or pointer is called upcasting. It is always allowed for public inheritance without the need for an explicit type cast.

The downcasting, the opposite of upcasting, is a process converting a base-class pointer or reference to a derived-class pointer or reference.

It is not allowed without an explicit type cast. That's because a derived class could add new data members, and the class member functions that used these data members wouldn't apply to the base class.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

How To Prepare For Any Exam?
1. Prepare mentally yourself to give an exam. 2. Know the benifit of passing the exam it encourages you to do your best. 3. Never think about failure. 4. Be confident. 5. Watch and solve old papers. 6....
M

Mohit S.

1 0
0

01 Introduction to Digital Logic
Introduction to Digital logic:

Compare C And C++ In Terms Of Header Files.
1."stdio.h" in c program controls input-output functionalities and operations associated with it where as in c++ program iostream.h" controls input-output functionalities and operations associated with...

Display contents of PDF file, iOS
Look at this video about display contents of PDF file.

Smita D.

0 0
0

Consignment Accounts By CA Prashanth Reddy
A. INTRODUCTION When goods are sent by one person to another to be sold by the latter on behalf and at the risk of the former, the transaction is known as consignment. The person who sends the goods...
F
X

Looking for C++ Language Classes?

The best tutors for C++ Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C++ Language with the Best Tutors

The best Tutors for C++ Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more