Question: You will achieve the learning objectives mentioned above by performing the following 1 5 activities: Modify the name attribute so that it is private in
You will achieve the learning objectives mentioned above by performing the following activities:
Modify the name attribute so that it is private in the GeometricShape class. LO
Modify the length attribute so that it is private in the Rectangle class. LO
Modify the width attribute so that it is private in the Rectangle class. LO
Modify the semimajoraxis attribute so that it is private in the Ellipse class. LO
Modify the semiminoraxis attribute so that it is private in the Ellipse class. LO
Implement the getname method in the GeometricShape class. LO
Implement the setname method in the GeometricShape class. LO
Implement the getwidth method in the Rectangle class. LO
Implement the setwidth method in the Rectangle class. LO
Implement the getlength method in the Rectangle class. LO
Implement the setlength method in the Rectangle class. LO
Implement the getsemimajoraxis method in the Ellipse Class. LO
Implement the setsemimajoraxis method in the Ellipse Class. LO
Implement the getsemiminoraxis method in the Ellipse Class. LO
Implement the setsemiminoraxis method in the Ellipse Class. LO
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
