Hello can someone help me with this program in OOP how can I do it?
Program an application on geometric figures that implements the base class
Geometric figure from which its members inherit
- 4 weeks ago
Your base class would be something like "Shape" and the constructor would take arguments like "sides" or "edges", and you could also throw a "length" argument in there.
so that you'd have something like 'square = new Shape(4, 2.5);' where 4 is the number of sides and 2.5 is the length of each side. or something like 'class Circle extends Shape;'
Does that make sense?