Question: Multiple Inheritance Multi-level Inheritance Hybrid Inheritance Vrite a C++ program to create a shape class. Now derive three classes i-e Trapezium, Sector, und Sphere.
Multiple Inheritance Multi-level Inheritance Hybrid Inheritance Vrite a C++ program to create a shape class. Now derive three classes i-e Trapezium, Sector, und Sphere. Use problem-solving skills to perform the following tasks: Find Area of a Trapezium (A = %(a+b) x h) and perimeter of a Trapezium (P = a + b+ c+ d) Find Area of a Sector (A = % x r x 8) and perimeter of a Sector (P = 2 Radius + ((0/360) x 2ar)) Find Area of a sphere (A = 4ar), perimeter of a sphere V= (4/3) ar
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
