Académique Documents
Professionnel Documents
Culture Documents
ODD 2020-2021
Topics to be Covered
Introduction to OOP :
Class
Inheritance
Polymorphism
Dynamic Binding
Message Passing
Class
A Class is a user defined data type, which holds its own data
members and member functions, which can be accessed and used by
creating an instance of that class.
A class is like a blueprint for an object.
For Example:
Consider the Class of Cars. There may be many cars with different
names and brand but all of them will share some common properties
like all of them will have 4 wheels, Speed Limit, Mileage range etc. So
here, Car is the class and wheels, speed limits, mileage are their
properties.
Objects
Objects are basic run-time entities in an object
oriented system, objects are instances of a class these are
defined user defined data types. They may represent a
person, a place, a bank account, a table of data or any item
that the program has to handle.
An Object is an instance(Blue print or template) of a
Class. When a class is defined, no memory is allocated but
when it is instantiated (i.e. an object is created) memory is
allocated.
Objects
Eg : Car C1,C2,C3;
Class Objects
Real time Example
When a program is executed, the objects interact by sending
messages to one another.
Son
•Inheritance
Example of Inheritance
Polymorphism
• Hypermedia
Is a superset of Hypertext. Deals with media,
ranges from images to sound.
Object Oriented Languages
The languages should support several of the OOP
concepts to claim that they are object-oriented.
Depending upon the features they support, they can be
classified into the following two categories:
2. Applications of OOPs_______
a) AI
b) NLP
c) BI
d) ALP
MCQ
3. Object-based features + inheritance + dynamic binding ==_______
a) OOC
b) OOP
c) OOR
6. The wrapping up of data and function into a single unit (called class) is
known as ___
a) Abstraction
b) Encapsulation.
c) Objects
d) Reusability.
INTERACTION & QUERIES????????