OBJECT ORIENTED PROBLEM SOLVING SKILLS
[
Log In
]
Home
OOP
Classes and Objects
Question 1
Question 2
Question 3
Constructors
Question 1
Question 2
Question 3
Question 4
Inheritance
Question1
Question2
Question3
Question4
Polymorphism
Question1
Help
Polymorphism
Design a class
Shape
having five attributes
(Radius, Length, Width, Hieght, Base)
and methods(
ReadAttributes( )
,
Area(), Area(double), Area(double, double), Area(int, int)
) Polymorphism using method overloding
Class Daigram
Class Shape
Attributes
private double Radius
private double Height
private double Base
private int Length
private int Width
Methods
public void ReadAttributes()
public void Area()
public void Area(double)
public void Area(double, double)
public void Area(int, int)
Random Steps
Actions
Proposed Steps
Psedu Code
Area(double)
Area( )
ReadAttributes( )
Area(double, double)
End Class
Attributes
Area(int, int)
Create Class Shape
No of Errors:
Select any step from the first List Box and move it to the second List Box and make all its lines into correct steps of sequential order, using the Arrow Keys
.