Page 1 of 1

Question 2 Not yet answered Marked out of 10.00 Flag question Apply the polymorphism characteristic of Object-Oriented p

Posted: Wed Apr 27, 2022 3:10 pm
by answerhappygod
Question 2 Not Yet Answered Marked Out Of 10 00 Flag Question Apply The Polymorphism Characteristic Of Object Oriented P 1
Question 2 Not Yet Answered Marked Out Of 10 00 Flag Question Apply The Polymorphism Characteristic Of Object Oriented P 1 (37.89 KiB) Viewed 33 times
Question 2 Not yet answered Marked out of 10.00 Flag question Apply the polymorphism characteristic of Object-Oriented programming to manipulate the following shape area calculation and show the result via the design and implementation of an object-oriented program. In addition to including not less than 10 internal documentation lines within the program and determining the type of inheritance applied. A base class called a shape with three different subclasses (rectangle, sphere volume, and circle). Each shape needs a specific formula for calculating its area as follows: • Rectangle area= (-1*r2), where r1 and r2 represents two different ribs/sides. • Sphere volume= (4/3) * TT* r^3,where r represents the radius. • Circle area=(TT (*r] ^2), where r represents the radius.