Question: Create in C# a class Circle containing 3 private instance variables (coordinates x and y of the center and the radius), the get and set
Create in C# a class Circle containing 3 private instance variables (coordinates x and y of the center and the radius), the get and set methods and a constructor to initialize them, and override the method ToString. Define 2 methods in the class Circle to return the perimeter and the area of the circle. In a class Program which contains a method Main, create two instances A and B of type circle, the information about the circles is given by the user, then calculate and display their coordinates, radius, areas and perimeters.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
