Write a class declaration named Circle with a private member variable named radius. Write set and get functions to access the radius variable, and a function named getArea that returns the area of the circle.the area calcilated as?

Respuesta :

Answer:

Explanation:

The following code is in C# Language

   public class Circle

   {

       private float radius;

       public float Radius

       {

           get { return radius; }

           set { radius = value; }

       }

       public void GetArea()

       {

           Console.WriteLine("The area of the circle is ", Math.PI* Radius  *Radius);

       }