Question: Q.1 a. Create the following class using MATLAB syntax. Class name: myCircle Property: Radius, which the value will be set when an object of this

Q.1 a. Create the following class using MATLAB syntax. Class name: myCircle Property: Radius, which the value will be set when an object of this class is created User defined Constructor which will accept the Radius's value Method: Area, which will calculate the area of the circle, i.e., area = 211 * Radius. (5 marks) Answer here in red font Show how you will use this class to define a circle with a radius of 10. Show how you can also obtain the area of this circle. (5 marks) Answer here in red font
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
