1
Reply

Confusion with Inheritance

Ask a question
paul walker

paul walker

14y
1.6k
1

This always confuses me....can someone please shed light where all is dark....
inheritedclass is inherited from baseclass, so the code below works ok, but will bc1 expose the methods/properties of baseclass or inheritedclass and why?
baseclass
bc1 = new inheritedclass();

Answers (1)