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 Employee that has three attributes FirstName, LastName and EmpId
Class Daigram
Class Employee
Attributes
public FirstName
public LastName
public EmpId
Constructors
public Employee( )
public Employee(Fname, Lname, Id)
Methods
public String getFirstName( )
public void setFirstName( )
public String getLastName( )
public void setLastName( )
public int getEmpId( )
public void setEmpId( )
public String toString( )
Random Steps
Actions
Proposed Steps
Psedu Code
setFirstName()
End Class
toString()
Constructor
setLastName()
getEmpId()
getFirstName()
setEmpId()
Start Class
getLastName()
Attributes
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
.