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

Divisibility rule
Every no. Is divisible by 1. Every even no. Is divisible by 2. If the sum of digit of a no. Is divisible by 3 then the no. Is also divisible by 3. If the last two digit is divisible by 4 then that no....
M

Mohit S.

1 0
0

Creativity
If you want to be creative..so you creat new things per minute..thats have to be your goal

Branches of mathematics
Mathematics can be broadly grouped into the following branches: Arithmetic : It is the oldest and the most elementary among other branches of mathematics. It deals with numbers and the basic operations-...
K

Data Structures
A data structure is a particular way of organizing data in a computer so that it can be used efficiently. Data structures can implement one or more particular Abstract Data Types (ADT), which specify...

Excel-Select All Data/Columns/Rows with One Click
You might know how to select all by using the Ctrl + A shortcut, but few know that with only one click of the corner button, all data/Columns/Rows will be selected in seconds.
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