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
Inheritance
Design a super class
students
having two attributes
(StudentId, StudentName)
and two methods
(getStudentId( ) and getStudentName( ))
then design another subclass
courses
that is extended from Superclass students and having two methods
(getCourse( ) and toString())
and one attribute
CourseName
. Use the following class daigram .
Class Daigram
Super Class students
Attributes
public int StudentId
public String StudentName
Methods
public void getStudentId( )
public void getStudentName( )
Sub class courses
Attributes
public String CourseName
Methods
public void getCourse( )
public void toString( )
Random Steps
Actions
Proposed Steps
Psedu Code
toString( )
Create Super Class
getStudentId( )
End Sub Class
getStudentName( )
Sub Class Attributes
Super Class Attributes
End Super Class
getCourse( )
Create Sub 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
.