




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Object is a programming unit having^ –
data (attributes)– methods (operations)
-^
Every object represents some physical object in the reallife situation (being programmed)
-^
Every
object
in a program is created from its
Class
Programmers write
Class code
for every needed object
(class)
-^
Main program is just creating objects and make use of theirfunctionalities
Client_Bill ClientNameRegularHoursOvertimeHoursRegularRateOvertimeRate computeClientBill(
TimeCardRecords
)
printBill( )
Client_Bill
object for
Client A
object for
Client B
A class for client bill object
Attributes^ Methods
Maximize Code Reusability^ –
Pre-written class codes can be used in any program development– New classes can be derived from pre-written classes with someadded functionalities [Inheritance]– Example:
Car class can be used for deriving more specific car
classes Toyota, Lexus, Mercedes etc.
Simplify Program Writing^ –
Users of an object do not need to know the exact mechanism ofany of the object functionalities [Encapsulation]– Easier for the programmers to change the functionality mechanismany time without asking users to change their programs
-^
but implemented differently for different objects[Polymorphism
in Client_Bill class
(clilent_printed_bill & client_onscreen_bill), themethods print does the same (semantically),however using different mechanism
helps in integrating the use of
different objects
(tables, queries, forms etc.)
customized application
An Example Microsoft Access
Database
Tables
-tblStudent-tblCourse-tblGrades
QueriesForms
-frmStudentManagement-frmCourseManagement-frmStudentGrades A Microsoft Access Database (college.mdb)
User needs to usedatabase objectsinteractively (
using the
command interfaceavailable in Access
) Docsity.com