SlideShare a Scribd company logo
1 of 11
CONCEPTS OF
Presented By:
Sheetal Pareek
B.Sc. IT, 4th sem
Presented To:
Dr. Rajeshwari Trivedi
Coordinator B.Sc. IT
Dev Sanskriti Vishwavidyalaya
Topics To Be Discussed...
 Introduction to OOP
 Object
 Class
 Data Abstraction and Encapsulation
 Inheritance
 Polymorphism
Introduction to OOP
It is a 'Programming Concept' that work on the principle that Objects are
most important part of your program.
Programming problem is analyzed in terms of objects.
Four main principles of OOP:
1).Encapsulation
2).Abstraction
3).Inheritance
4).Polymorphism.
 Java, Python, Ruby, C++,Visual Basic are the some OOP Languages.
OBJECT
• Objects are the basic run time entities in an object oriented system.
• can be defined as an instance of a class (can be multiple instances of a class in a
program).
• contains both the data and the function(method), which operates on the data.
Example: A dog has states(Data) - color, name, breed
as well as behaviors(Functions) – wagging the tail, barking, eating.
CLASS
• An User-Define Data Type.
• A "Blueprint of Object", or an Extensible program-code-template for
creating objects.
• It is only an logical component and not the physical entity.
• Each class should be designed and programmed to accomplish one, and
only one, thing(data type).
• For example: in student class name, roll_no, marks are data members
and Total, Average, Display are the member function.
DATA ABSTRACTION AND ENCAPSULATION
 Abstraction is an act of representing essential features without including background details.
Classes use the concept of abstraction.
Since the classes use the concept of data abstraction, they are known as Abstract Data
Types (ADT).
It is used to reduce complexity and increase Efficiency.
It is simply a case of hiding details about how a thing works.
 The wrapping up of data and functions into a single unit (called c1ass) is known as Encapsulation.
The data is not accessible to the outside world, and only those functions which
are wrapped in the class can access it.
hide your data in order to make it safe from any modification.
INHERITENCE
⇢ Inheritance is the reuse of an existing code.
⇢ Inheritance is what is called when a parent class is used by a child
class for the purpose of extending the parent class.
⇢ By doing this we can save a lot of time and some unnecessary
programming.
TYPES OF INHERITANCE
1. Single Inheritance – Derived Class inherits only one base class.
2. Multiple Inheritance - a single derived class may inherit from two or more
than two base classes.
3. Hierarchical Inheritance -multiple derived classes inherits from a single base
class.
4. Multilevel Inheritance- derived class inherits from a class, which in turn
inherits from some other class. The Super class for one, is sub class for the other.
5. Hybrid Inheritance (also known as Virtual Inheritance)- derivation of a
class involves more than one form of any inheritance is called hybrid
inheritance.
POLYMORPHISM
• Polymorphism is derived from 2 greek words: poly and morphs.
Poly= many and Morphs= forms.
• briefly described as “one interface, many implementations”.
• Polymorphism is a characteristic of being able to assign a different
meaning or usage to something in different contexts.
• Increases Flexibility.
• There are two types of polymorphism:
(A).Compile time polymorphism (B).Run time polymorphism
REFERENCES
• The C++ Programming Language
- Bjarne Stroustrup
• Object Oriented Programming with C++
- E Balagurusamy
Concepts of oop1

More Related Content

What's hot

What's hot (16)

Java programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- InheritanceJava programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- Inheritance
 
Oop
OopOop
Oop
 
Encapsulation
EncapsulationEncapsulation
Encapsulation
 
Constant a,variables and data types
Constant a,variables and data typesConstant a,variables and data types
Constant a,variables and data types
 
Advanced software engineering lab 2
Advanced software engineering lab 2Advanced software engineering lab 2
Advanced software engineering lab 2
 
150950107056 2150704
150950107056 2150704150950107056 2150704
150950107056 2150704
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questions
 
Top 10 java oops interview questions
Top 10 java oops interview questionsTop 10 java oops interview questions
Top 10 java oops interview questions
 
C++ with student management system project
C++ with student management system projectC++ with student management system project
C++ with student management system project
 
object oriented programing lecture 1
object oriented programing lecture 1object oriented programing lecture 1
object oriented programing lecture 1
 
Encapsulation
EncapsulationEncapsulation
Encapsulation
 
Oopsinphp
OopsinphpOopsinphp
Oopsinphp
 
Oops
OopsOops
Oops
 
Object Oriented Programming - Basic Concepts
Object Oriented Programming - Basic ConceptsObject Oriented Programming - Basic Concepts
Object Oriented Programming - Basic Concepts
 
Object-Oriented concepts.pptx
Object-Oriented concepts.pptxObject-Oriented concepts.pptx
Object-Oriented concepts.pptx
 
Oops slide
Oops slide Oops slide
Oops slide
 

Similar to Concepts of oop1

Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentalsAnsgarMary
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented ProgrammingAyushiDubey19
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop pptdaxesh chauhan
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaMadishetty Prathibha
 
Core java lessons
Core java lessonsCore java lessons
Core java lessonsvivek shah
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP conceptsAhmed Farag
 
JAVA - Oops Concept.pptx
JAVA - Oops Concept.pptxJAVA - Oops Concept.pptx
JAVA - Oops Concept.pptxayankamila005
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming languageMd.Al-imran Roton
 
Object And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) LanguagesObject And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) LanguagesJessica Deakin
 

Similar to Concepts of oop1 (20)

Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentals
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 
Research paper
Research paperResearch paper
Research paper
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
Java ppt
Java pptJava ppt
Java ppt
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Core java lessons
Core java lessonsCore java lessons
Core java lessons
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
Oops concepts
Oops conceptsOops concepts
Oops concepts
 
Java_notes.ppt
Java_notes.pptJava_notes.ppt
Java_notes.ppt
 
INHERITANCE-Oopc ppt-ta4
INHERITANCE-Oopc ppt-ta4INHERITANCE-Oopc ppt-ta4
INHERITANCE-Oopc ppt-ta4
 
Cs8392 oops 5 units notes
Cs8392 oops 5 units notes Cs8392 oops 5 units notes
Cs8392 oops 5 units notes
 
OOP
OOPOOP
OOP
 
JAVA - Oops Concept.pptx
JAVA - Oops Concept.pptxJAVA - Oops Concept.pptx
JAVA - Oops Concept.pptx
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
 
oop.pptx
oop.pptxoop.pptx
oop.pptx
 
java part 1 computer science.pptx
java part 1 computer science.pptxjava part 1 computer science.pptx
java part 1 computer science.pptx
 
Object And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) LanguagesObject And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) Languages
 
130704798265658191
130704798265658191130704798265658191
130704798265658191
 

Recently uploaded

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Recently uploaded (20)

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

Concepts of oop1

  • 1. CONCEPTS OF Presented By: Sheetal Pareek B.Sc. IT, 4th sem Presented To: Dr. Rajeshwari Trivedi Coordinator B.Sc. IT Dev Sanskriti Vishwavidyalaya
  • 2. Topics To Be Discussed...  Introduction to OOP  Object  Class  Data Abstraction and Encapsulation  Inheritance  Polymorphism
  • 3. Introduction to OOP It is a 'Programming Concept' that work on the principle that Objects are most important part of your program. Programming problem is analyzed in terms of objects. Four main principles of OOP: 1).Encapsulation 2).Abstraction 3).Inheritance 4).Polymorphism.  Java, Python, Ruby, C++,Visual Basic are the some OOP Languages.
  • 4. OBJECT • Objects are the basic run time entities in an object oriented system. • can be defined as an instance of a class (can be multiple instances of a class in a program). • contains both the data and the function(method), which operates on the data. Example: A dog has states(Data) - color, name, breed as well as behaviors(Functions) – wagging the tail, barking, eating.
  • 5. CLASS • An User-Define Data Type. • A "Blueprint of Object", or an Extensible program-code-template for creating objects. • It is only an logical component and not the physical entity. • Each class should be designed and programmed to accomplish one, and only one, thing(data type). • For example: in student class name, roll_no, marks are data members and Total, Average, Display are the member function.
  • 6. DATA ABSTRACTION AND ENCAPSULATION  Abstraction is an act of representing essential features without including background details. Classes use the concept of abstraction. Since the classes use the concept of data abstraction, they are known as Abstract Data Types (ADT). It is used to reduce complexity and increase Efficiency. It is simply a case of hiding details about how a thing works.  The wrapping up of data and functions into a single unit (called c1ass) is known as Encapsulation. The data is not accessible to the outside world, and only those functions which are wrapped in the class can access it. hide your data in order to make it safe from any modification.
  • 7. INHERITENCE ⇢ Inheritance is the reuse of an existing code. ⇢ Inheritance is what is called when a parent class is used by a child class for the purpose of extending the parent class. ⇢ By doing this we can save a lot of time and some unnecessary programming.
  • 8. TYPES OF INHERITANCE 1. Single Inheritance – Derived Class inherits only one base class. 2. Multiple Inheritance - a single derived class may inherit from two or more than two base classes. 3. Hierarchical Inheritance -multiple derived classes inherits from a single base class. 4. Multilevel Inheritance- derived class inherits from a class, which in turn inherits from some other class. The Super class for one, is sub class for the other. 5. Hybrid Inheritance (also known as Virtual Inheritance)- derivation of a class involves more than one form of any inheritance is called hybrid inheritance.
  • 9. POLYMORPHISM • Polymorphism is derived from 2 greek words: poly and morphs. Poly= many and Morphs= forms. • briefly described as “one interface, many implementations”. • Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts. • Increases Flexibility. • There are two types of polymorphism: (A).Compile time polymorphism (B).Run time polymorphism
  • 10. REFERENCES • The C++ Programming Language - Bjarne Stroustrup • Object Oriented Programming with C++ - E Balagurusamy