+ 1

Most derived class

what's most derived class?

28th Dec 2017, 1:30 AM
Š’Š°Š»ŠµŠ½Ń‚ŠøŠ½ ŠšŠ¾Ń€Š½ŠøŠµŠ½ŠŗŠ¾
Š’Š°Š»ŠµŠ½Ń‚ŠøŠ½ ŠšŠ¾Ń€Š½ŠøŠµŠ½ŠŗŠ¾ - avatar
1 Answer
+ 10
With an example: class base {}; class derived : base {};Ā class base2Ā {}; class mostderived : derived,Ā base2Ā {}; mostderived md; The object md is of most derived class mostderived , although it is also of types base , derived and base1 . https://stackoverflow.com/questions/12241637/what-does-the-most-derived-object-mean I hope this answers your question
30th Dec 2017, 8:13 AM
Koketso Dithipe
Koketso Dithipe - avatar