Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 8

MODULE 2 - OBJECTS AND CLASSES

PREPARED BY: CHRISTOPHER A. HERNANDEZ


CLASSIFICATION OF OBJECTS

Physical – objects which can be seen or touched • Student


• Professor
• Classroom
• Furniture
• Building
• Textbook
CLASSIFICATION OF OBJECTS

Conceptual – objects which can’t be touched but they exists.


• Course
• Department
• Degree
ATTRIBUTES (VARIABLES)
Student
Name
ID
Birth date
Address
Major
GPA
Course
ATTRIBUTES (VARIABLES)

Course
Number
Name
Prerequisite
Number of credit hours
Description
BEHAVIOR (METHODS)

Student
Enrolling a course
Dropping a course
Choosing a major field of study
Selecting a faculty advisor
Telling you his/her GPA when asked
Telling you whether he/she has taken a specific course.
BEHAVIOR (METHODS)

Course
Permitting a student to register
Determining whether or not a given student is registered
Telling you how many students have registered
Telling you what prerequisite courses are
Telling you which professor is assigned to teach a course
RELATIONSHIP BETWEEN OBJECTS AND CLASS

Is an instance
Object Class

Is an instance
John Doe Person

You might also like