0
Lesson 69.2 I got stuck
Where to insert the access specifier? Which syntax.
1 ответ
+ 16
Use protected access specifier for price and weight:
class Product {
protected:
double price;
int weight;
...
}
And extend the Product class:
class Fruit : public Product