Object Oriented Programming: - Learning Objectives
Object Oriented Programming: - Learning Objectives
Oriented Programming
• Learning Objectives:
At the end of this chapter the students will be able to:
• Understand about Object Oriented Programming(OOP) classes and objects
• Know the concepts related to OOP
• Objects
• Classes
• Encapsulation
• Data Hiding
• Abstraction
• Polymorphism
• Inheritance
• Know about the advantages of OOP over earlier programming methodologies
• An object-oriented programming (OOP) is a
programming language model which is organized
around "objects" rather than "actions" and data
rather than logic.
• Before the introduction of the Object Oriented
Programming paradigm, a program was viewed as
a logical procedure that takes input data,
processes it, and produces output. But in case of
OOP a problem is viewed in terms of objects
rather than procedure for
• doing it.
what is an object?
• An object can be anything that we notice around us. It can be a
person (described by name, address, date of Birth etc, his typing
speed), a cup (described by size , color , price etc.) , a car (described
by model , color , engine etc., its mileage, speed ) and so on. In fact
it can be an identifiable entity.
• The whole idea behind an object oriented model is to make
programming closer to they real world thereby making it a very
natural way of programming.
• The core of pure object-oriented programming is to combine into a
single unit both data and functions or methods that operate on that
data.
• Simula was the first object-oriented programming language. Java,
Python, C++, Visual Basic, .NET and Ruby are the most popular OOP
languages today.
Basic concepts related to OOP
The basic concepts related to OOP are as
follows:
– Objects
– Classes
– Encapsulation
– Abstraction
– Data Hiding
– Polymorphism
– Inheritance
Object
• An object characterised by:
• Identity: This is the name that identifies an object. For example Or an i-phone is
a mobile phone that has been launched by Apple Inc.
• Properties: These are the features or attributes of the object. For example a A
mobile phone has model, color, price as its properties.
• Behaviour: The behaviour of an object signifies what all functions an object can
perform. A mobile phone can click and store photographs (behave like a camera).
<15000 C Type