Chapter 1
, Introduction
• With the advancement of languages such as C, structured
programming become very popular and was the paradigm of
the 1980s. However, as the programs grew larger, even the
structured approach failed to show the desired results in
terms of bug-free, easy-to-maintain and reusable programs.
• Object-oriented programming (OOP) is an approach to
program organization and development, which attempts to
eliminate some of the pitfalls of conventional programming
methods by incorporating the best of structured programming
features with several new concepts.
What is object-oriented programming ?
• Object-oriented programming is a programming model that
organizes software design around ‘objects’ and ‘classes’, which
contain both data and methods.
, Object-oriented programming – As the name
suggests uses objects in programming. Object-oriented
programming aims to implement real-world entities like
inheritance, hiding, polymorphism, etc. in programming.
The main aim of OOP is to bind together the data and the
functions that operate on them so that no other part of
the code can access this data except that function.
There are some basic concepts that act as the building
blocks of OOPs i.e.
– Class
– Objects
– Encapsulation
– Abstraction
– Polymorphism
– Inheritance
– Dynamic Binding
– Message Passing