SlideShare a Scribd company logo
Introduction to Object Oriented Programming
THE AMERICAN COLLEGE, MADURAI
(An Autonomous Institution Affiliated to Madurai Kamaraj University)
Reaccredited (3rd cycle)by NAAC with Grade “A” CGPA-3.47 on a 4-POINTS scale
Dr. S.SHAIK PARVEEN
Assistant Professor.
Department of BCA
The American College, Madurai
1.1 Software Crisis
 Developments in software technology continue to be dynamic.
 New tools and techniques are announced in quick succession.
 This has forced the software engineers and industry to continuously
look for new approaches to software design and development.
 These rapid advances appear to have created a situation of crisis within
the industry
 The following issued need to be addressed to face the crisis:
 How to represent real-life entities of problems in system design?
 How to design system with open interfaces?
 How to improve the quality of software?
 How to manage time schedules?
 How to ensure reusability and extensibility of modules?
 How to develop modules that are tolerant of any changes in future?
 How to improve software productivity and decrease software cost?
1.2 Software Evolution
 Ernest Tello, A well known writer in the field of artificial
intelligence, compared the evolution of software technology to
the growth of the tree.
 Alan Kay, one of the promoters of the object-oriented paradigm
and the principal designer of Smalltalk, has said: “As
complexity increases, architecture dominates the basic
materials”.
1.3 Procedure/ Structure
Oriented Programming
 Conventional programming, using high level languages such as
COBOL, FORTRAN and C, is commonly known as procedure-
oriented programming (POP) .
 In the procedure-oriented approach, the problem is viewed as
a sequence of things to be done such as reading, calculating
and printing. A number of functions are written to accomplish
these tasks .
 The primary focus is on functions :
1.4 Object Oriented
Programming
 Emphasis is on data rather than procedure.
 Programs are divided into what are known as objects.
 Data is hidden and cannot be accessed by external functions.
 Objects may communicate with each other through functions.
 New data and functions can be easily added whenever
necessary.
 Follows bottom-up approach in program design
1.5 Basic Concepts of OOP
1.5.1 Objects :
 Objects are the basic runtime entities in an object oriented
system. They may represent a person, a place, a bank account,
a table of data or any item that the program has to handle
1.5.2 Class
 Object contains data, and code to manipulate that data. The
entire set of data and code of an object can be made a user-
defined data type with the help of a class
 A Class is a 3-Compartment Box encapsulating Data
and Functions
1. Classname (or identifier): identifies the class.
2. Data Members or Variables (or attributes, states,
fields): contains the static attributes of the class.
(or methods, behaviors, operations):
3. Member Functions
contains the dynamic operations of the class.
1.5.3 Data Encapsulation
 The wrapping up of data and functions into a single unit is
known as encapsulation.
 The data is not accessible to the outside world, only
those function which are wrapped in the can access it.
 These functions provide the interface between the object’s
data and the program.
 This insulation of the data from direct access by the program is
called data hiding or information hiding.
1.5.4 Data Abstraction
 Abstraction refers to the act of representing essential
features without including the background details or
explanations.
 Since classes use the concept of data abstraction, they are
known as Abstract Data Types (ADT)
1.5.5 Inheritance
 Inheritance is the process by which objects of one class
acquire the properties of objects of another class.
 In OOP, the concept of inheritance provides the idea of
reusability. This means we can add additional features to
an existing class without modifying it.
1.5.6 Polymorphism
 Polymorphism, a Greek term means to ability to take more
than one form.
 An operation may exhibits different behaviors in different
instances. The behavior depends upon the type of data used in
the operation.
 For example consider the operation of addition for two
numbers; the operation will generate a sum. If the operands
are string then the operation would produce a third string by
concatenation.
 The process of making an operator to exhibit different
behavior in different instances is known operator
overloading
1.6 Benefits of OOP
OOP offers several benefits to both the program designer & the user
 Through inheritance, we can eliminate redundant code and extend
the use of existing class
 We can build programs from the standard working module the
communicate with one another, rather than having to start writing
code from scratch. This leads to saving of development time &
higher productivity.
 The principle of data hiding helps the programmer to build &
secure programs that cannot be invaded by code in other parts of
the program.
 It is possible to map objects in the problem domain to those in the
program
 It is easy to partition the work in a project based on objects
 The data-centered design approach enables us to capture more
details of a model in implementable form.
.
Benefits of OOP
 Object-oriented systems can be easily upgraded from
small to large systems.
 Message passing techniques for communication between
objects makes the interface descriptions with external
systems much simpler.
 Software complexity can be easily managed .
 While it is possible to incorporate all these features in an
object- oriented system, their importance depends on the
type of the project and the preference of the programmer.
There are a number of issues that need to be tackled to
reap some of the benefits stated above. For instance,
object libraries must be available for reuse. The
technology is still developing and current
1.7 Application of OOP
Real-business systems are often much more complex and
contain many more objects with complicated attributes and
methods. OOP is useful in these types of applications because
it can simplify a complex problem. The promising areas for
application of OOP include:
 Real-time systems
 Simulation and modeling
 Object-oriented databases
 Hypertext, hypermedia and expertext
 Al and expert systems
 Neural networks and parallel programming
 Decision support and office automation systems
 CIM/CAM/CAD systems
References
⚫Object Oriented Programming With C++, Fourth
Edition, E BALAGURUSAMY.
Thank You

More Related Content

PDF
OOP ppt.pdf
ArpitaJana28
 
PPTX
OOP.pptx
kalyanibedekar
 
PDF
22601221182_RAHUL_MODAK_BCAC301.pdf
ssuser736e06
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PDF
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
PPTX
Unit 1 OOSE
ChhayaShelake
 
PPTX
2-oops-concepts_about_c++_btech_cse.pptx
NitinGarg168992
 
PPTX
Chapter1 introduction
Jeevan Acharya
 
OOP ppt.pdf
ArpitaJana28
 
OOP.pptx
kalyanibedekar
 
22601221182_RAHUL_MODAK_BCAC301.pdf
ssuser736e06
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Unit 1 OOSE
ChhayaShelake
 
2-oops-concepts_about_c++_btech_cse.pptx
NitinGarg168992
 
Chapter1 introduction
Jeevan Acharya
 

Similar to Object Oriented Programming using C++.pptx (20)

PPTX
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
babasahebgaikwad8
 
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
PPTX
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
PPTX
Presentation c
Kunal Sharma
 
PPTX
POP vs OOP Introduction
Hashni T
 
PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
PPTX
principle of oop’s in cpp
gourav kottawar
 
PDF
Oop basic overview
Deborah Akuoko
 
PPT
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
PPTX
1 unit (oops)
Jay Patel
 
PPTX
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
KrishnaveniT8
 
PPT
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
sagarjsicg
 
PDF
object oriented programming concepts and explanation
SATYA136395
 
PDF
Procedural-vs-Object-Oriented-Programming (1).pdf
AnujMalviya12
 
PDF
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
PDF
Object oriented concepts ppt
Prof. Dr. K. Adisesha
 
PPTX
CPP_,module2_1.pptx
AbhilashTom4
 
PPT
2 Object Oriented Programming
Praveen M Jigajinni
 
PPTX
CPP-Unit 1.pptx
YashKoli22
 
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
babasahebgaikwad8
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
IET307 OOP - object oriented programming concepts.pptx
BasithAb2
 
Presentation c
Kunal Sharma
 
POP vs OOP Introduction
Hashni T
 
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
principle of oop’s in cpp
gourav kottawar
 
Oop basic overview
Deborah Akuoko
 
Share Unit 1- Basic concept of object-oriented-programming.ppt
hannahrroselin95
 
1 unit (oops)
Jay Patel
 
SE-IT JAVA LAB OOP CONCEPT
nikshaikh786
 
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
KrishnaveniT8
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
sagarjsicg
 
object oriented programming concepts and explanation
SATYA136395
 
Procedural-vs-Object-Oriented-Programming (1).pdf
AnujMalviya12
 
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
Object oriented concepts ppt
Prof. Dr. K. Adisesha
 
CPP_,module2_1.pptx
AbhilashTom4
 
2 Object Oriented Programming
Praveen M Jigajinni
 
CPP-Unit 1.pptx
YashKoli22
 
Ad

More from parveen837153 (7)

PPT
Advanced Excel
parveen837153
 
PPTX
Cyber Security
parveen837153
 
PPTX
Cyber Security
parveen837153
 
PPT
Introduction to CSS in HTML.ppt
parveen837153
 
DOCX
IOT-Monograph .docx
parveen837153
 
PPT
Internet of things Unit I
parveen837153
 
PPT
Unit I Advanced Java Programming Course
parveen837153
 
Advanced Excel
parveen837153
 
Cyber Security
parveen837153
 
Cyber Security
parveen837153
 
Introduction to CSS in HTML.ppt
parveen837153
 
IOT-Monograph .docx
parveen837153
 
Internet of things Unit I
parveen837153
 
Unit I Advanced Java Programming Course
parveen837153
 
Ad

Recently uploaded (20)

PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PDF
7.Particulate-Nature-of-Matter.ppt/8th class science curiosity/by k sandeep s...
Sandeep Swamy
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
7.Particulate-Nature-of-Matter.ppt/8th class science curiosity/by k sandeep s...
Sandeep Swamy
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Congenital Hypothyroidism pptx
AneetaSharma15
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 

Object Oriented Programming using C++.pptx

  • 1. Introduction to Object Oriented Programming THE AMERICAN COLLEGE, MADURAI (An Autonomous Institution Affiliated to Madurai Kamaraj University) Reaccredited (3rd cycle)by NAAC with Grade “A” CGPA-3.47 on a 4-POINTS scale Dr. S.SHAIK PARVEEN Assistant Professor. Department of BCA The American College, Madurai
  • 2. 1.1 Software Crisis  Developments in software technology continue to be dynamic.  New tools and techniques are announced in quick succession.  This has forced the software engineers and industry to continuously look for new approaches to software design and development.  These rapid advances appear to have created a situation of crisis within the industry  The following issued need to be addressed to face the crisis:  How to represent real-life entities of problems in system design?  How to design system with open interfaces?  How to improve the quality of software?  How to manage time schedules?  How to ensure reusability and extensibility of modules?  How to develop modules that are tolerant of any changes in future?  How to improve software productivity and decrease software cost?
  • 3. 1.2 Software Evolution  Ernest Tello, A well known writer in the field of artificial intelligence, compared the evolution of software technology to the growth of the tree.  Alan Kay, one of the promoters of the object-oriented paradigm and the principal designer of Smalltalk, has said: “As complexity increases, architecture dominates the basic materials”.
  • 4. 1.3 Procedure/ Structure Oriented Programming  Conventional programming, using high level languages such as COBOL, FORTRAN and C, is commonly known as procedure- oriented programming (POP) .  In the procedure-oriented approach, the problem is viewed as a sequence of things to be done such as reading, calculating and printing. A number of functions are written to accomplish these tasks .  The primary focus is on functions :
  • 5. 1.4 Object Oriented Programming  Emphasis is on data rather than procedure.  Programs are divided into what are known as objects.  Data is hidden and cannot be accessed by external functions.  Objects may communicate with each other through functions.  New data and functions can be easily added whenever necessary.  Follows bottom-up approach in program design
  • 6. 1.5 Basic Concepts of OOP 1.5.1 Objects :  Objects are the basic runtime entities in an object oriented system. They may represent a person, a place, a bank account, a table of data or any item that the program has to handle
  • 7. 1.5.2 Class  Object contains data, and code to manipulate that data. The entire set of data and code of an object can be made a user- defined data type with the help of a class
  • 8.  A Class is a 3-Compartment Box encapsulating Data and Functions 1. Classname (or identifier): identifies the class. 2. Data Members or Variables (or attributes, states, fields): contains the static attributes of the class. (or methods, behaviors, operations): 3. Member Functions contains the dynamic operations of the class.
  • 9. 1.5.3 Data Encapsulation  The wrapping up of data and functions into a single unit is known as encapsulation.  The data is not accessible to the outside world, only those function which are wrapped in the can access it.  These functions provide the interface between the object’s data and the program.  This insulation of the data from direct access by the program is called data hiding or information hiding. 1.5.4 Data Abstraction  Abstraction refers to the act of representing essential features without including the background details or explanations.  Since classes use the concept of data abstraction, they are known as Abstract Data Types (ADT)
  • 10. 1.5.5 Inheritance  Inheritance is the process by which objects of one class acquire the properties of objects of another class.  In OOP, the concept of inheritance provides the idea of reusability. This means we can add additional features to an existing class without modifying it.
  • 11. 1.5.6 Polymorphism  Polymorphism, a Greek term means to ability to take more than one form.  An operation may exhibits different behaviors in different instances. The behavior depends upon the type of data used in the operation.  For example consider the operation of addition for two numbers; the operation will generate a sum. If the operands are string then the operation would produce a third string by concatenation.  The process of making an operator to exhibit different behavior in different instances is known operator overloading
  • 12. 1.6 Benefits of OOP OOP offers several benefits to both the program designer & the user  Through inheritance, we can eliminate redundant code and extend the use of existing class  We can build programs from the standard working module the communicate with one another, rather than having to start writing code from scratch. This leads to saving of development time & higher productivity.  The principle of data hiding helps the programmer to build & secure programs that cannot be invaded by code in other parts of the program.  It is possible to map objects in the problem domain to those in the program  It is easy to partition the work in a project based on objects  The data-centered design approach enables us to capture more details of a model in implementable form. .
  • 13. Benefits of OOP  Object-oriented systems can be easily upgraded from small to large systems.  Message passing techniques for communication between objects makes the interface descriptions with external systems much simpler.  Software complexity can be easily managed .  While it is possible to incorporate all these features in an object- oriented system, their importance depends on the type of the project and the preference of the programmer. There are a number of issues that need to be tackled to reap some of the benefits stated above. For instance, object libraries must be available for reuse. The technology is still developing and current
  • 14. 1.7 Application of OOP Real-business systems are often much more complex and contain many more objects with complicated attributes and methods. OOP is useful in these types of applications because it can simplify a complex problem. The promising areas for application of OOP include:  Real-time systems  Simulation and modeling  Object-oriented databases  Hypertext, hypermedia and expertext  Al and expert systems  Neural networks and parallel programming  Decision support and office automation systems  CIM/CAM/CAD systems
  • 15. References ⚫Object Oriented Programming With C++, Fourth Edition, E BALAGURUSAMY.