SlideShare a Scribd company logo
1 of 11
Download to read offline
Introduction to Object Oriented Programming
SUBJECT NAME : OBJECT ORIENTED PROGRAMMING
SUBJECT CODE : BCAC_301.
STUDENT NAME : RAHUL MODAK.
UNIV ROLL NO : 22601221182
UNIV REG NO : 212261001210182
DEPARTMENT : B.C.A
SEMESTER : 3
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
Basic Concepts of OOP
➢ 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
➢ 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.
➢ 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.
➢ 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)
➢ 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.
➢ 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
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
products may be superseded quickly. Strict controls and
protocols need to be developed if reuse is not to be
compromised.

More Related Content

Similar to 22601221182_RAHUL_MODAK_BCAC301.pdf

gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrdgxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
wrushabhsirsat
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
farhan amjad
 

Similar to 22601221182_RAHUL_MODAK_BCAC301.pdf (20)

Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptx
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
A Hand Book of Visual Basic 6.0.pdf.pdf
A Hand Book of Visual Basic 6.0.pdf.pdfA Hand Book of Visual Basic 6.0.pdf.pdf
A Hand Book of Visual Basic 6.0.pdf.pdf
 
OOPS_Unit_1
OOPS_Unit_1OOPS_Unit_1
OOPS_Unit_1
 
C++ & VISUAL C++
C++ & VISUAL C++ C++ & VISUAL C++
C++ & VISUAL C++
 
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrdgxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
gxhrehsrejhvytftfltyflytdtydtydky5dyrdtrdrdtrd
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
 
chapter - 1.ppt
chapter - 1.pptchapter - 1.ppt
chapter - 1.ppt
 
Benefits of encapsulation
Benefits of encapsulationBenefits of encapsulation
Benefits of encapsulation
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
 
CPP-Unit 1.pptx
CPP-Unit 1.pptxCPP-Unit 1.pptx
CPP-Unit 1.pptx
 
C++(introduction)
C++(introduction)C++(introduction)
C++(introduction)
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Basic Concepts of Object Oriented Programming using C++
Basic Concepts of Object Oriented Programming using C++Basic Concepts of Object Oriented Programming using C++
Basic Concepts of Object Oriented Programming using C++
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Object Oriented Program Class 12 Computer Science
Object Oriented Program Class 12 Computer ScienceObject Oriented Program Class 12 Computer Science
Object Oriented Program Class 12 Computer Science
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
 
Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
 
JAVA PROGRAMMINGD
JAVA PROGRAMMINGDJAVA PROGRAMMINGD
JAVA PROGRAMMINGD
 
Birasa 1
Birasa 1Birasa 1
Birasa 1
 

Recently uploaded

Obat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di Depok
Obat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di DepokObat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di Depok
Obat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di Depok
Obat Aborsi Jakarta Wa 085176963835 Apotek Jual Obat Cytotec Di Jakarta
 
Presentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelledPresentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelled
CaitlinCummins3
 
What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...
srcw2322l101
 
Obat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di Bandung
Obat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di BandungObat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di Bandung
Obat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di Bandung
Obat Aborsi Jakarta Wa 085176963835 Apotek Jual Obat Cytotec Di Jakarta
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
nafizanafzal
 
Powerpoint showing results from tik tok metrics
Powerpoint showing results from tik tok metricsPowerpoint showing results from tik tok metrics
Powerpoint showing results from tik tok metrics
CaitlinCummins3
 

Recently uploaded (20)

10 Easiest Ways To Buy Verified TransferWise Accounts
10 Easiest Ways To Buy Verified TransferWise Accounts10 Easiest Ways To Buy Verified TransferWise Accounts
10 Easiest Ways To Buy Verified TransferWise Accounts
 
Obat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di Depok
Obat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di DepokObat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di Depok
Obat Aborsi Depok 0851\7696\3835 Jual Obat Cytotec Di Depok
 
WAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdfWAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdf
 
A DAY IN THE LIFE OF A SALESPERSON .pptx
A DAY IN THE LIFE OF A SALESPERSON .pptxA DAY IN THE LIFE OF A SALESPERSON .pptx
A DAY IN THE LIFE OF A SALESPERSON .pptx
 
Presentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelledPresentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelled
 
What are the differences between an international company, a global company, ...
What are the differences between an international company, a global company, ...What are the differences between an international company, a global company, ...
What are the differences between an international company, a global company, ...
 
Chapter 2 Organization Structure of a Treasury
Chapter 2 Organization Structure of a TreasuryChapter 2 Organization Structure of a Treasury
Chapter 2 Organization Structure of a Treasury
 
Mastering The Art Of 'Closing The Sale'.
Mastering The Art Of 'Closing The Sale'.Mastering The Art Of 'Closing The Sale'.
Mastering The Art Of 'Closing The Sale'.
 
What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...What is paper chromatography, principal, procedure,types, diagram, advantages...
What is paper chromatography, principal, procedure,types, diagram, advantages...
 
Moradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in PenacovaMoradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in Penacova
 
Obat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di Bandung
Obat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di BandungObat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di Bandung
Obat Aborsi Bandung 0851\7696\3835 Jual Obat Cytotec Di Bandung
 
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdfProgress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
Progress Report - UKG Analyst Summit 2024 - A lot to do - Good Progress1-1.pdf
 
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjwSCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
 
Home Furnishings Ecommerce Platform Short Pitch 2024
Home Furnishings Ecommerce Platform Short Pitch 2024Home Furnishings Ecommerce Platform Short Pitch 2024
Home Furnishings Ecommerce Platform Short Pitch 2024
 
Navigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA FirmsNavigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA Firms
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
 
SCI9-Q4-MOD9.pdfetiwtitw3i3uu45w5wtitwjt
SCI9-Q4-MOD9.pdfetiwtitw3i3uu45w5wtitwjtSCI9-Q4-MOD9.pdfetiwtitw3i3uu45w5wtitwjt
SCI9-Q4-MOD9.pdfetiwtitw3i3uu45w5wtitwjt
 
Pay after result spell caster (,$+27834335081)@ bring back lost lover same da...
Pay after result spell caster (,$+27834335081)@ bring back lost lover same da...Pay after result spell caster (,$+27834335081)@ bring back lost lover same da...
Pay after result spell caster (,$+27834335081)@ bring back lost lover same da...
 
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfThe Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
 
Powerpoint showing results from tik tok metrics
Powerpoint showing results from tik tok metricsPowerpoint showing results from tik tok metrics
Powerpoint showing results from tik tok metrics
 

22601221182_RAHUL_MODAK_BCAC301.pdf

  • 1. Introduction to Object Oriented Programming SUBJECT NAME : OBJECT ORIENTED PROGRAMMING SUBJECT CODE : BCAC_301. STUDENT NAME : RAHUL MODAK. UNIV ROLL NO : 22601221182 UNIV REG NO : 212261001210182 DEPARTMENT : B.C.A SEMESTER : 3
  • 2. 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
  • 3. Basic Concepts of OOP ➢ 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
  • 4. ➢ 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
  • 5. ▪ 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.
  • 6. ➢ 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.
  • 7. ➢ 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)
  • 8. ➢ 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.
  • 9. ➢ 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
  • 10. 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. .
  • 11. 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 products may be superseded quickly. Strict controls and protocols need to be developed if reuse is not to be compromised.