Professional Documents
Culture Documents
Topic 1.1
Topic 1.1
Alan Kay
History of OOP
1970s 1980s
Object-oriented features have been added to
many existing languages during that time,
including Ada, BASIC, Fortran, Pascal, and others.
Probably the most commercially important recent
object-oriented languages are Visual Basic.NET
(VB.NET), C#, .NET platform and Java.
Object : Student
Data : name, address, icno, sid, marks, status
Method : DetermineStatus()
Basic terminologies of OOP
Classes
A class is a blueprint or prototype from which objects are
created. Objects with similar properties and methods are
grouped together to form a Class
A set of objects that have similar attributes and methods.
Attributes and methods of a class can be used by each
object from that class.
Attribute
Abstraction
Name, Student ID,
Address, IC No
Behaviors
Calculate_mark (),
Determine_grsde (),
Print_result ()
Basic terminologies of OOP
Inheritance
Create a new class from an existing class together with new
attributes and behaviours.
Inheritance is the process of forming a new class from an
existing class or base class.
The new class will have the same ability as the base class.
Use the concept of code reusability.
Example 1:
Message: Withdraw a money from bank
Action Object
Student1 : Using ATM machine from Bank account.