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
Constructors
Design a class that will read Length and Width of a rectangle then calculate its Area and circumfernce using the following class daigram
Class Daigram
Class Rectangle
Attributes
private Len
private Width
Constructors
public Rectangle( )
public Rectangle(L, W)
Methods
public void getLength( )
public void setLength( )
public void getWidth( )
public float Area( )
public float Cercumference( )
public String toString( )
Random Steps
Actions
Proposed Steps
Psedu Code
getWidth()
toString()
Attributes
getLength()
setLength()
End Class
setWidth()
Calculate Area()
Constructor
Calculate Circumference()
Start Class
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
.