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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!