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
Classes and Objects
Design a class that will read two float numbers then calculate its Sum and Product using the following class daigram
Class Daigram
Class ABC
Attributes
private double FirstNumber
private double SecondNumber
Methods
public void getFirstNumber( )
public void getSecondNumber( )
public double Sum( )
public double Product( )
public String toString( )
Random Steps
Actions
Proposed Steps
Psedu Code
getSecondNumber()
End Class
toString()
Start Class
Calculate Product()
Attributes
getFirstNumber()
Calculate Sum()
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
.