Question: c++ (Just header files) c++ . Interface Counter whose methods are . bool method named Increment() that takes no parameters. bool method named Decrement() that
. Interface Counter whose methods are . bool method named Increment() that takes no parameters. bool method named Decrement() that takes no parameters. Interface NumberSystem whose methods are void method named Addition () that takes no parameters. void method named Subtraction () that takes no parameters. Derived class Circle that publicly inherits Shape whose fields and methods are private double field named radius. I private double constant static field named PI equal to 3.1415926. public default constructor that assigns 1 to radius. publie copy constructor. public assignment operator. public empty destructor. public double constant method named Get Radius() that takes no parameters. It returns radius. public double static method named GetPI) that takes no parameters. It returns Pl. public double static method named Get Diameter that takes no parameters. It returns the diameter of the circle. public void method named Set Radius) that takes a double parameter. It assigns the parameter to medits only if the parameter is positives otherwise, it does nothing public overridden Area(). It returns the area of the circle. public overridden Perimeter(). It returns the circumference of the circle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
