Suppose that you have the following classes, small and notSmall:
class small
public:
void print() const;
int add()
return x + y;
small()
small(int a, int b)
x = a;
y = b;
private:
int x = 0;
int y = 0;
;
void small::print() const
cout < “small:=”” –=””><>
< “x:=”” “=””>< x=””>
class notSmall: public small
{