1. L

    Question Why can't I access a variable declared in derived class with the object of base class

    Hi, Good Evening everyone I have created two classes namely Shape, Rectangle with Draw() method in both the classes, Rectangle class is a deried class from Shape. I have declared a public variable in Rectangle called num and initialised a value to it. In the main class I have created an...
Top Bottom