+ 2
[Solved] Unveiling Shadowed Inherited members
In the following code how to access the derv() function of the base class x from object of class y https://code.sololearn.com/cihgu7AoX0CR/?ref=app
3 odpowiedzi
+ 5
((x)a).derv(); will call it from main.
+ 4
x::derv(); will call it from y::derv.
+ 3
John Wells thank you sir