SlideShare a Scribd company logo
 Most of people thing that opp is a language.
 Most of people thing C++ is oop.
 But it is not true –
 opp is a concept which is followed by several
  languages like. C++, c#, java, j# etc.
 Simula is the first language which follow the opp`s
  concept in 1960.
 In opp, every thing is in form of class and object.
 Opp is like religion and language are like people who
  follow the religion.
 Class –
 Class is a keyword which is use to create a user define
  data type. Through which we can access different-2
  fundamental data type, which are declare inside the
  class.
 Class allocate memory in form of stack, at compilation
  time.
 It’s mean is it, that the memory of class is always fixed.
  ( at compilation time ).
 Object –
 Object is an instance of a class.
 Object always created at run time.
 Object is a collection of variables which are inside the class.
 Type of object –
 There are mainly two type of object –
 1. Qualified object
 2. reference object
 Virtual object
 Qualified object –
 Actually when we talking about the qualified object, it’s mean is
  it we are talking about the object.
 Qualified object allocate memory in heap portion of ram
 Reference object – A such type of object, which does
  not allocate any separate memory. It take space in the
  stack of the class.
 Function- 1. function is an entity which perform some
  specific task.
 2. function always return a value.
 3. every program has at least one function, if only one
  function then that is main ( );
 Type of function –
 1. member function.
 2. parameterized function.
 3. static function.
 4. friend function.
 5. virtual function.
 6. pure virtual function.
 Member function –
 1. a function which is define inside the class and call by it’s object
  is known as member function.
 Parameterized function –
 A member function which take parameters as argument is
  known as parameterized function.
 Static function –
 A function which is not call by object but call by the
  class name.
 We can also say’s that a static function follow the
  principle of class but don't follow the principle of
  object.
 Friend function –
 A function which does not follow the principle of class
  and object means. It is directly call by it’s name, is
  known as friend function.
 Constructor –
 Constructor is a special type function.
 Which name is same to class name.
 Constructor never return a value.
 Constructor never inherited.
 Constructor is use to initialized the qualified object, we can
    also says that it allocate memory for qualified object.
   Type of constructor –
   1. default function.
   2. parameterized function.
   3. copy constructor.
 Default constructor –
 A constructor which does not take any parameter and
    initialized the qualified object, is known as default
    constructor.
   Parameterized constructor –
   A such type of constructor which takes argument in
    form of parameter is known as parameterized
    constructor.
   Copy constructor –
   A parameterized constructor which take parameter as
    the copy of on object is known as copy constructor.
 Destructor –
 Destructor is similar to constructor, it’s name is also same
    to class name & it also never return any value and never
    inherited.
   It is use to deallocate the memory location of qualified
    object. We can also says that it deallocate the heap.
   Polymorphism –
   Polymorphism is a concept, same name function their
    working is different and call by a single object is known as
    polymorphism.
   Type of polymorphism –
   1. static polymorphism.
   2. dynamic polymorphism.
 Static polymorphism –
 We use function overloading, to achieve static polymorphism.
    Same name function, their return type may be same and they are
    define in a same class only one difference they take different
    parameter.
   When a single object call these functions, it is known as function
    overloading and this implementation call static polymorphism.
   Dynamic polymorphism –
   Dynamic polymorphism is also known as runtime polymorphism
    achieve dynamic polymorphism, we required –
   1. Inheritance.
   2. function overriding.
 Inheritance –
 It is a concept of oop, through which we can access the
    property of one class from another class.
   Inheritance always perform between two objects.
   A class which access the property is known derived class
    and a class whose property is access is known bass class.
   Type of inheritance –
   1. Single level inheritance.
   2. Multi level inheritance.
   3. Multiple inheritance.
   4. Hierarchical.
   5. Hybrid.
 Virtual function –
 We know that we can not acass the derive class function
    from base class object.
   So we use the concept of virtual function if we declare a
    function as virtual then it can be call by base class object.
   Virtual object –
   We know that inheritance always perform between two
    objects. We are able to see the object of derive class but we
    can not see the object of base class.
   For inheritance object must be created so we represent base
    class object as virtual object.
   It has no memory but all the variables and function of that
    object take space in virtual table.
 Pure virtual function –
 A such type of function which use the keyword virtual and initialized
    by o (zero) is known as pure virtual function.
   If any class contain a pure virtual function then no object of that class
    created.
   “ The body of pure virtual function is not with it ”. If any class inherited
    the class which have pure virtual function, then derive class also
    become obstruct till it does not define pure virtual function.
    abstract class –
   A class which contain a pure virtual function is known as abstract class.
   The object of this class never created.
   Interface –
   A such type class which all functions are pure virtual function is known
    as interface.

More Related Content

PPTX
Constructor in java
Madishetty Prathibha
 
PPTX
Classes objects in java
Madishetty Prathibha
 
PDF
Java basic concept
University of Potsdam
 
DOC
Java classes and objects interview questions
Dhivyashree Selvarajtnkpm
 
PDF
Chapter 01 Introduction to Java by Tushar B Kute
Tushar B Kute
 
PPTX
+2 CS class and objects
khaliledapal
 
PPTX
Interesting Facts About Javascript
Manish Jangir
 
PPTX
Javascript Prototypal Inheritance - Big Picture
Manish Jangir
 
Constructor in java
Madishetty Prathibha
 
Classes objects in java
Madishetty Prathibha
 
Java basic concept
University of Potsdam
 
Java classes and objects interview questions
Dhivyashree Selvarajtnkpm
 
Chapter 01 Introduction to Java by Tushar B Kute
Tushar B Kute
 
+2 CS class and objects
khaliledapal
 
Interesting Facts About Javascript
Manish Jangir
 
Javascript Prototypal Inheritance - Big Picture
Manish Jangir
 

What's hot (20)

PPSX
Java Object Oriented Programming
University of Potsdam
 
PPTX
Javascript Objects Deep Dive
Manish Jangir
 
PPTX
The Go Programing Language 1
İbrahim Kürce
 
PPTX
JavaScript OOPS Implimentation
Usman Mehmood
 
PDF
Java Basics Presentation
Omid Sohrabi
 
PDF
Java essentials for hadoop
Seo Gyansha
 
PPTX
Oops
Jaya Kumari
 
PDF
Learn C# Programming - Classes & Inheritance
Eng Teong Cheah
 
PPTX
Top 20 c# interview Question and answers
w3asp dotnet
 
PDF
Unit 2 Part 1 Constructors.pdf
Arpana Awasthi
 
PPT
Core Java interview questions-ppt
Mayank Kumar
 
PPT
The ruby programming language
praveen0202
 
PDF
Java Programming Paradigms Chapter 1
Sakthi Durai
 
PPTX
Variables in python
Jaya Kumari
 
PPTX
Object oriented programming in java
Elizabeth alexander
 
PPT
JVM and OOPS Introduction
SATYAM SHRIVASTAV
 
PPTX
C# interview
Thomson Reuters
 
PPTX
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
İbrahim Kürce
 
PPT
Java oops and fundamentals
javaease
 
PDF
Introduction repository, ddd and unit test
Hiraq Citra M
 
Java Object Oriented Programming
University of Potsdam
 
Javascript Objects Deep Dive
Manish Jangir
 
The Go Programing Language 1
İbrahim Kürce
 
JavaScript OOPS Implimentation
Usman Mehmood
 
Java Basics Presentation
Omid Sohrabi
 
Java essentials for hadoop
Seo Gyansha
 
Learn C# Programming - Classes & Inheritance
Eng Teong Cheah
 
Top 20 c# interview Question and answers
w3asp dotnet
 
Unit 2 Part 1 Constructors.pdf
Arpana Awasthi
 
Core Java interview questions-ppt
Mayank Kumar
 
The ruby programming language
praveen0202
 
Java Programming Paradigms Chapter 1
Sakthi Durai
 
Variables in python
Jaya Kumari
 
Object oriented programming in java
Elizabeth alexander
 
JVM and OOPS Introduction
SATYAM SHRIVASTAV
 
C# interview
Thomson Reuters
 
OCA Java SE 8 Exam Chapter 1 Java Building Blocks
İbrahim Kürce
 
Java oops and fundamentals
javaease
 
Introduction repository, ddd and unit test
Hiraq Citra M
 
Ad

Similar to Paca oops slid (20)

PPTX
Object Oriented Programming Using C++
Muhammad Waqas
 
PDF
Classes-and-Objects-in-C++.pdf
ismartshanker1
 
PDF
A COMPLETE FILE FOR C++
M Hussnain Ali
 
PPT
Virtual Function
Carelon Global Solutions
 
PPTX
OBJECT ORIENTED PROGRAMING IN C++
Dev Chauhan
 
PDF
Object Oriented Programming (OOP) using C++ - Lecture 4
Faculty of Computers and Informatics, Suez Canal University, Ismailia, Egypt
 
PPTX
c++.pptxwjwjsijsnsksomammaoansnksooskskk
mitivete
 
PPTX
B.sc CSIT 2nd semester C++ Unit6
Tekendra Nath Yogi
 
PPTX
concept of oops
prince sharma
 
PDF
Object Oriented Programming notes provided
dummydoona
 
PPTX
C++ Object Oriented Programming
Gamindu Udayanga
 
PPTX
6be10b153306cc41e65403247a14a4dba5f9186aCHAPTER 2_POINTERS, VIRTUAL FUNCTIONS...
Mysteriousexpert
 
PDF
OOPs theory about its concepts and properties.
ssuser1af273
 
PPT
VIRTUAL FUNCTIONS c++ -POLYMORPHISM.ppt
blindlove32538210
 
PDF
oopsinvb-191021101327.pdf
JP Chicano
 
PPTX
Oops in vb
Dalwin INDIA
 
PPTX
Polymorphism.Difference between Inheritance & Polymorphism
huzaifaakram12
 
PPT
Polymorphism in C++ for beginners reference
21pd23
 
PDF
polymorpisum-140106223024-phpapp01.pdf
BapanKar2
 
Object Oriented Programming Using C++
Muhammad Waqas
 
Classes-and-Objects-in-C++.pdf
ismartshanker1
 
A COMPLETE FILE FOR C++
M Hussnain Ali
 
Virtual Function
Carelon Global Solutions
 
OBJECT ORIENTED PROGRAMING IN C++
Dev Chauhan
 
Object Oriented Programming (OOP) using C++ - Lecture 4
Faculty of Computers and Informatics, Suez Canal University, Ismailia, Egypt
 
c++.pptxwjwjsijsnsksomammaoansnksooskskk
mitivete
 
B.sc CSIT 2nd semester C++ Unit6
Tekendra Nath Yogi
 
concept of oops
prince sharma
 
Object Oriented Programming notes provided
dummydoona
 
C++ Object Oriented Programming
Gamindu Udayanga
 
6be10b153306cc41e65403247a14a4dba5f9186aCHAPTER 2_POINTERS, VIRTUAL FUNCTIONS...
Mysteriousexpert
 
OOPs theory about its concepts and properties.
ssuser1af273
 
VIRTUAL FUNCTIONS c++ -POLYMORPHISM.ppt
blindlove32538210
 
oopsinvb-191021101327.pdf
JP Chicano
 
Oops in vb
Dalwin INDIA
 
Polymorphism.Difference between Inheritance & Polymorphism
huzaifaakram12
 
Polymorphism in C++ for beginners reference
21pd23
 
polymorpisum-140106223024-phpapp01.pdf
BapanKar2
 
Ad

More from pacatarpit (9)

PPTX
Ado.net
pacatarpit
 
PPTX
Sql slid
pacatarpit
 
PPTX
C# slid
pacatarpit
 
PPTX
.Net slid
pacatarpit
 
PPTX
Perl slid
pacatarpit
 
PPTX
Paca java script slid
pacatarpit
 
PPTX
Internet
pacatarpit
 
PPTX
html tutorial
pacatarpit
 
PPTX
What is c
pacatarpit
 
Ado.net
pacatarpit
 
Sql slid
pacatarpit
 
C# slid
pacatarpit
 
.Net slid
pacatarpit
 
Perl slid
pacatarpit
 
Paca java script slid
pacatarpit
 
Internet
pacatarpit
 
html tutorial
pacatarpit
 
What is c
pacatarpit
 

Recently uploaded (20)

PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Doc9.....................................
SofiaCollazos
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Software Development Methodologies in 2025
KodekX
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
The Future of AI & Machine Learning.pptx
pritsen4700
 

Paca oops slid

  • 1.  Most of people thing that opp is a language.  Most of people thing C++ is oop.  But it is not true –  opp is a concept which is followed by several languages like. C++, c#, java, j# etc.  Simula is the first language which follow the opp`s concept in 1960.  In opp, every thing is in form of class and object.  Opp is like religion and language are like people who follow the religion.
  • 2.  Class –  Class is a keyword which is use to create a user define data type. Through which we can access different-2 fundamental data type, which are declare inside the class.  Class allocate memory in form of stack, at compilation time.  It’s mean is it, that the memory of class is always fixed. ( at compilation time ).
  • 3.  Object –  Object is an instance of a class.  Object always created at run time.  Object is a collection of variables which are inside the class.  Type of object –  There are mainly two type of object –  1. Qualified object  2. reference object  Virtual object  Qualified object –  Actually when we talking about the qualified object, it’s mean is it we are talking about the object.  Qualified object allocate memory in heap portion of ram
  • 4.  Reference object – A such type of object, which does not allocate any separate memory. It take space in the stack of the class.  Function- 1. function is an entity which perform some specific task.  2. function always return a value.  3. every program has at least one function, if only one function then that is main ( );
  • 5.  Type of function –  1. member function.  2. parameterized function.  3. static function.  4. friend function.  5. virtual function.  6. pure virtual function.  Member function –  1. a function which is define inside the class and call by it’s object is known as member function.  Parameterized function –  A member function which take parameters as argument is known as parameterized function.
  • 6.  Static function –  A function which is not call by object but call by the class name.  We can also say’s that a static function follow the principle of class but don't follow the principle of object.  Friend function –  A function which does not follow the principle of class and object means. It is directly call by it’s name, is known as friend function.
  • 7.  Constructor –  Constructor is a special type function.  Which name is same to class name.  Constructor never return a value.  Constructor never inherited.  Constructor is use to initialized the qualified object, we can also says that it allocate memory for qualified object.  Type of constructor –  1. default function.  2. parameterized function.  3. copy constructor.
  • 8.  Default constructor –  A constructor which does not take any parameter and initialized the qualified object, is known as default constructor.  Parameterized constructor –  A such type of constructor which takes argument in form of parameter is known as parameterized constructor.  Copy constructor –  A parameterized constructor which take parameter as the copy of on object is known as copy constructor.
  • 9.  Destructor –  Destructor is similar to constructor, it’s name is also same to class name & it also never return any value and never inherited.  It is use to deallocate the memory location of qualified object. We can also says that it deallocate the heap.  Polymorphism –  Polymorphism is a concept, same name function their working is different and call by a single object is known as polymorphism.  Type of polymorphism –  1. static polymorphism.  2. dynamic polymorphism.
  • 10.  Static polymorphism –  We use function overloading, to achieve static polymorphism. Same name function, their return type may be same and they are define in a same class only one difference they take different parameter.  When a single object call these functions, it is known as function overloading and this implementation call static polymorphism.  Dynamic polymorphism –  Dynamic polymorphism is also known as runtime polymorphism achieve dynamic polymorphism, we required –  1. Inheritance.  2. function overriding.
  • 11.  Inheritance –  It is a concept of oop, through which we can access the property of one class from another class.  Inheritance always perform between two objects.  A class which access the property is known derived class and a class whose property is access is known bass class.  Type of inheritance –  1. Single level inheritance.  2. Multi level inheritance.  3. Multiple inheritance.  4. Hierarchical.  5. Hybrid.
  • 12.  Virtual function –  We know that we can not acass the derive class function from base class object.  So we use the concept of virtual function if we declare a function as virtual then it can be call by base class object.  Virtual object –  We know that inheritance always perform between two objects. We are able to see the object of derive class but we can not see the object of base class.  For inheritance object must be created so we represent base class object as virtual object.  It has no memory but all the variables and function of that object take space in virtual table.
  • 13.  Pure virtual function –  A such type of function which use the keyword virtual and initialized by o (zero) is known as pure virtual function.  If any class contain a pure virtual function then no object of that class created.  “ The body of pure virtual function is not with it ”. If any class inherited the class which have pure virtual function, then derive class also become obstruct till it does not define pure virtual function.  abstract class –  A class which contain a pure virtual function is known as abstract class.  The object of this class never created.  Interface –  A such type class which all functions are pure virtual function is known as interface.