BaseClass base;DerivedClass child(5);// Display baseValue using base object// will print 20// Display baseValue using child object ;//

BaseClass base;DerivedClass child(5);// Display baseValue using base object// will print 20// Display baseValue using child object ;// will print 15// Display derivedValue using child object // will print 5// define BaseClass base(100), print baseValue using BaseClass and Derived Class, What will be the output in both cases

Related Posts

This Post Has 4 Comments

  1. Imean it could be either both i get why it could be part of being human because some people just look at the famous people and they probably think to themselves that if that person does that well then i should do it and maybe i’ll get the attention and followers that i want. it could be also connected to the current young phenomenon because some kids at the age of 14 are already famous like for doing the most nasty things probably without even thinking who would probably watch such thing, they just do it cause they know they’ll get the attention that they want. sorry if i didn’t use correct grammar.but hope this answers the question< 3

Leave a Reply

Your email address will not be published. Required fields are marked *