Question: Using C#, Create a class classA in a namespace called spaceA. It has the following members: An attribute radius, which defaults to 15. One instance
Using C#, Create a class classA in a namespace called spaceA. It has the following members: An attribute radius, which defaults to 15. One instance constructor that initializes the attribute radius when an instance is created. Two methods below: MethodA is an instance method that can be accessed from another class. It calculates the perimeter of a circle. MethodB is an instance method that can only be accessed inside of the class. It calculates the area of a circle. Create a class classA in a namespace called spaceB. It has the following members: Two attributes length and width, each of which defaults to 21. One instance constructor that initializes the attributes when an instance is created Two methods below: MethodA is an instance method that can only be accessed inside of the class. It calculates the area of a rectangle. MethodB is an instance method that can be accessed from another class. It calculates the perimeter of a rectangle. Create a class classA in a namespace called spaceC. The class classA only has a main method. if a method in spaceA or spaceB can be called, it will be called in this Main method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
