SlideShare a Scribd company logo
OJECT
ORINTED
PROGRAMMING
IN
C++.
IN THE OOPS WE WILL PERFORMS VARIOUS
COMPONENTS.
1)CLASS
2)OBJECT
3)ABSTRACT
4)ENCAPCULATION
5)INHERITANCE
CLASS
Class is a collection of member data and
member function.
Member data is a collection of attribute
in a class.
Member function is a collection of
operation .It is perform in the class.
SYNTAX OF CLASS
Class classname
{
Private:
All member data
Public:
All member function
};
EXAMPLE OF CLASS WITH THE
HELP OF SUM OPERATION
#include<conio.h>
#include<iostream.h>
Class sum
{
Private:
int a,b,c;
Public:
void input()
{
Cout<<“enter the value of a and b variable”;
Cin>>a>>b;
}
Void display()
{
C=a+b;
Cout<<“value of sun is”<<c;
}
};
Void main()
{
Sum s;
Clrscr();
s.input();
s.output();
Getch();
}
OBJECT OBJECT
Object is a real entity world. With the help of OBJECT
we can call the member data and member function.
It is just like a membership.
Syntax of object:
class name classobject;
Classobject.mamber function();
EXAMPLE OF CLASS AND OBJECT WITH THE
HELP OF SUM OPERATION
#include<conio.h>
#include<iostream.h>
Class sum
{
Private:
int a,b,c;
Public:
void input()
{
Cout<<“enter the value of a and b variable”;
Cin>>a>>b;
}
Void display()
{
C=a+b;
Cout<<“value of sun is”<<c;
}
};
Void main()
{
Sum s; // Here (s) is a object . It is calling the member data and member
function.
Clrscr();
s.input();
s.output();
Getch();
}
ABSTRACT
An abstract class is, conceptually, a class that cannot be
instantiated and is usually implemented as a class that
has one or more pure virtual (abstract) functions.
pure virtual function is one which must be overridden
by any concrete (i.e., non-abstract) derived class. This
is indicated in the declaration with the syntax " = 0" in
the member function's declaration.
ENCAPCULATION
Encapsulation is the packing of data and functions into a
single component. The features of encapsulation are
supported using classes in most object-oriented
programming languages, although other alternatives
also exist. It allows selective hiding of properties and
methods in an object by building an impenetrable wall
to protect the code from accidental corruption.
Best example of Encapsulations is class because it have
the multiple of member data and member function in
the same class.
INHERITANCE
With the help of inheritance we can reuse the data one
class to anther class .
Which have inherits the properties of base class is
known as parents class/base class/super class.
Which have inherits the properties of parents class is
known as sub class/child class/inherit class.
Inheritance seprate into many class…
1) Single Inheritance 4) Hybrid Inheritance
2) Hierarchical Inheritance 5) c
3) Multi Level Inheritance
Single Inheritance
when a single derived class is created from a single base
class then the inheritance is called as single
inheritance.
BASE CLASS
DERIVED
CLASS
It is known as single
inheritance class.
SYNTAX OF SINGLE INHERITANCE
class a
{
Public:
all member data;
Public:
all member function;
};
class b:public a
{
Public:
all member data;
Public:
all member function;
};
EXAMPLE OF SINGLE INHERITANCE
#include<iostream.h>
#include<conio.h>
Class sum
{
Public:
Int a=5,b=5,c;
Public:
void display()
{
c=a+b;
cout<<“value of sum is”<<c;
}
};
class sub: public sum
{
Public:
Int d;
Public:
void output()
{
d=a-b;
cout<<“the value of subtraction is”<<d;
}
};
void main()
{
clrscr();
sub s;
s.display();
s.output();
getch();
}
Hierarchical Inheritance
when more than one derived class are created from a
single base class, then that inheritance is called as
hierarchical inheritance.
BASE CLASS
DERIVED CLASS (2)DERIVED CLASS (1)
SYNTAX OF HIEARCHICAL INHERITANCE
Class a
{
Public: all member data;
Public: all member function;
};
Class b:public a
{
Public: all member data;
Public: all member function;
};
Class c:public a
{
Private: all member data;
Public: all member function;
};
EXAMPLE OF HIARCHICAL
INHERITANCE
#include<conio.h>
#include<iostream.h>
Class a
{
public :
int a=10,b=2,c,d,e;
Public:
void output()
{
c=a-b;
Cout<<“value of sum is”<<c;
}
};
class b:public a
{
Public:
void display()
{
d=a-b;
Cout<<“value of subtraction is;
Cout<<d;
}
};
Class c:public
{
Public:
void coutput()
{
e=a*b;
Cout<<“multiplication is”<<e;
}
};
void main()
{
Clrscr();
a l;
l.output();
l.display();
l.coutput();
getch();
}
Multi Level Inheritance
when a derived class is created from another derived
class, then that inheritance is called as multi level
inheritance.
BASE CLASS
DERIVED
CLASS (1)
DEEIVED
CLASS(2)
SYNTAX OF MULTILEVEL INHERITANCE
Class a
{
Public: all member data;
Public: all member
function;
};
Class b:public a
{
Public:all member data;
Public:all member
function;
};
Class c:public c
{
Private:all member data;
Private:all member
function;
};
Hybrid Inheritance
Hybrid inheritance is combination of two or more
inheritances such as single,multiple,multilevel or
Hierarchical inheritances.
DREVIED CLASS(1)
DERIVED CLASS(3)
DERIVED CLASS(2)
BASE CLASS
SYNTAX OF HYBRID INHERITANCE
Class a
{
Public:all member data;
Public:all member function;
};
Class b:public a
{
Public:all member data;
Public:all member function;
};
Class c:public c
{
Public:all member data;
Public:all member function;
};
Class d:public d
{
Public:all member data;
Public:all member function;
};
Multiple Inheritance
Deriving directly from more than one class is usually
called multiple inheritance.
BASE CLASS
DERVIED
CLASS(1)
DERIVED CLASS(3)
DERIVED
CLASS (2)
DERIVED
CLASS(4)
SYNTAX OF MULTIPLE INHERITANCE
Class a
{
Public:all memberdata;
Public:all member function;
};
Class b:public a
{
Public:all memberdata;
Public:all member function;
};
Class c:public a
{
Public:all memberdata;
Public:all member function;
};
Class d:public b
{
Public:all memberdata;
Public:all member function;
};
Class e:public c,public d
{
Private:all member data;
Public:all member
function;
};www,cpd-india.com

More Related Content

What's hot

Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
Paumil Patel
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Conceptsthinkphp
 
Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function
Kamlesh Makvana
 
Pure virtual function and abstract class
Pure virtual function and abstract classPure virtual function and abstract class
Pure virtual function and abstract class
Amit Trivedi
 
Encapsulation in C++
Encapsulation in C++Encapsulation in C++
Encapsulation in C++
Hitesh Kumar
 
virtual function
virtual functionvirtual function
virtual function
VENNILAV6
 
polymorphism
polymorphism polymorphism
polymorphism
Imtiaz Hussain
 
Inheritance
InheritanceInheritance
Inheritance
Pranali Chaudhari
 
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
Darpan Chelani
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorials
Mayank Jain
 
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
Arnab Bhaumik
 
Java packages
Java packagesJava packages
Java packages
Shreyans Pathak
 
Encapsulation C++
Encapsulation C++Encapsulation C++
Encapsulation C++
Hashim Hashim
 
object oriented Programming ppt
object oriented Programming pptobject oriented Programming ppt
object oriented Programming ppt
Nitesh Dubey
 
Inner classes in java
Inner classes in javaInner classes in java
Inner classes in java
PhD Research Scholar
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
Muhammad Hammad Waseem
 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member Functions
MOHIT AGARWAL
 
Java OOP Programming language (Part 6) - Abstract Class & Interface
Java OOP Programming language (Part 6) - Abstract Class & InterfaceJava OOP Programming language (Part 6) - Abstract Class & Interface
Java OOP Programming language (Part 6) - Abstract Class & Interface
OUM SAOKOSAL
 

What's hot (20)

Inheritance in c++
Inheritance in c++Inheritance in c++
Inheritance in c++
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function Virtual function in C++ Pure Virtual Function
Virtual function in C++ Pure Virtual Function
 
Pure virtual function and abstract class
Pure virtual function and abstract classPure virtual function and abstract class
Pure virtual function and abstract class
 
Encapsulation in C++
Encapsulation in C++Encapsulation in C++
Encapsulation in C++
 
virtual function
virtual functionvirtual function
virtual function
 
polymorphism
polymorphism polymorphism
polymorphism
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorials
 
Inheritance In Java
Inheritance In JavaInheritance In Java
Inheritance In Java
 
Inheritance
InheritanceInheritance
Inheritance
 
Java packages
Java packagesJava packages
Java packages
 
Encapsulation C++
Encapsulation C++Encapsulation C++
Encapsulation C++
 
object oriented Programming ppt
object oriented Programming pptobject oriented Programming ppt
object oriented Programming ppt
 
Inner classes in java
Inner classes in javaInner classes in java
Inner classes in java
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member Functions
 
Inner class
Inner classInner class
Inner class
 
Java OOP Programming language (Part 6) - Abstract Class & Interface
Java OOP Programming language (Part 6) - Abstract Class & InterfaceJava OOP Programming language (Part 6) - Abstract Class & Interface
Java OOP Programming language (Part 6) - Abstract Class & Interface
 

Viewers also liked

Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
cprogrammings
 
Inheritance in C++
Inheritance in C++Inheritance in C++
Inheritance in C++
Laxman Puri
 
Php Training Session 4
Php Training Session 4Php Training Session 4
Php Training Session 4
Vishal Kothari
 
Andrealozada
AndrealozadaAndrealozada
Andrealozada
Andrea Lozada
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
Edhole.com
 
Inheritance
InheritanceInheritance
Inheritance
PriyankaAkhil
 
Hierarchical inheritance
Hierarchical inheritanceHierarchical inheritance
Hierarchical inheritance
Shrija Madhu
 
inheritance in C++
inheritance in C++inheritance in C++
inheritance in C++
tayyaba nawaz
 
Session Management & Cookies In Php
Session Management & Cookies In PhpSession Management & Cookies In Php
Session Management & Cookies In PhpHarit Kothari
 
Trees
TreesTrees
EEE 3rd year oops cat 3 ans
EEE 3rd year  oops cat 3  ansEEE 3rd year  oops cat 3  ans
EEE 3rd year oops cat 3 ans
Karthik Venkatachalam
 
Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)
indiangarg
 
EEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answerEEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answer
Jeba Moses
 
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
Supriya Radhakrishna
 
Viva questions
Viva questions Viva questions

Viewers also liked (20)

Inheritance
InheritanceInheritance
Inheritance
 
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
 
Inheritance in C++
Inheritance in C++Inheritance in C++
Inheritance in C++
 
Php Training Session 4
Php Training Session 4Php Training Session 4
Php Training Session 4
 
Lecture09
Lecture09Lecture09
Lecture09
 
Andrealozada
AndrealozadaAndrealozada
Andrealozada
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Oop
OopOop
Oop
 
Inheritance
InheritanceInheritance
Inheritance
 
Hierarchical inheritance
Hierarchical inheritanceHierarchical inheritance
Hierarchical inheritance
 
inheritance in C++
inheritance in C++inheritance in C++
inheritance in C++
 
Session Management & Cookies In Php
Session Management & Cookies In PhpSession Management & Cookies In Php
Session Management & Cookies In Php
 
Inheritance
InheritanceInheritance
Inheritance
 
Trees
TreesTrees
Trees
 
EEE 3rd year oops cat 3 ans
EEE 3rd year  oops cat 3  ansEEE 3rd year  oops cat 3  ans
EEE 3rd year oops cat 3 ans
 
Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)Programming Fundamentals With OOPs Concepts (Java Examples Based)
Programming Fundamentals With OOPs Concepts (Java Examples Based)
 
EEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answerEEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answer
 
Es272 ch4b
Es272 ch4bEs272 ch4b
Es272 ch4b
 
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
 
Viva questions
Viva questions Viva questions
Viva questions
 

Similar to OOPS IN C++

Ppt of c++ vs c#
Ppt of c++ vs c#Ppt of c++ vs c#
Ppt of c++ vs c#
shubhra chauhan
 
Multiple Inheritance
Multiple InheritanceMultiple Inheritance
Multiple Inheritance
BhavyaJain137
 
chapter-10-inheritance.pdf
chapter-10-inheritance.pdfchapter-10-inheritance.pdf
chapter-10-inheritance.pdf
study material
 
Inheritance
InheritanceInheritance
Inheritance
Burhan Ahmed
 
Inheritance
InheritanceInheritance
Inheritance
SangeethaSasi1
 
Opp concept in c++
Opp concept in c++Opp concept in c++
Opp concept in c++
SadiqullahGhani1
 
inheritance in OOPM
inheritance in OOPMinheritance in OOPM
inheritance in OOPM
PKKArc
 
C++.pptx
C++.pptxC++.pptx
Inheritance.pptx
Inheritance.pptxInheritance.pptx
Inheritance.pptx
RutujaTandalwade
 
Introduction to object oriented programming concepts
Introduction to object oriented programming conceptsIntroduction to object oriented programming concepts
Introduction to object oriented programming concepts
Ganesh Karthik
 
Inheritance and Interfaces
Inheritance and InterfacesInheritance and Interfaces
Inheritance and Interfaces
NAGASURESH MANOHARAN
 
10 inheritance
10 inheritance10 inheritance
10 inheritance
Docent Education
 
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptxinheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
urvashipundir04
 
Unit3 java
Unit3 javaUnit3 java
Unit3 javamrecedu
 
C++ presentation
C++ presentationC++ presentation
C++ presentation
SudhanshuVijay3
 
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptxINHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
DeepasCSE
 
OOP Assign No.03(AP).pdf
OOP Assign No.03(AP).pdfOOP Assign No.03(AP).pdf
OOP Assign No.03(AP).pdf
Anant240318
 
Inheritance
InheritanceInheritance
Inheritance
Misbah Aazmi
 

Similar to OOPS IN C++ (20)

Ppt of c++ vs c#
Ppt of c++ vs c#Ppt of c++ vs c#
Ppt of c++ vs c#
 
Multiple Inheritance
Multiple InheritanceMultiple Inheritance
Multiple Inheritance
 
chapter-10-inheritance.pdf
chapter-10-inheritance.pdfchapter-10-inheritance.pdf
chapter-10-inheritance.pdf
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance
InheritanceInheritance
Inheritance
 
Opp concept in c++
Opp concept in c++Opp concept in c++
Opp concept in c++
 
inheritance in OOPM
inheritance in OOPMinheritance in OOPM
inheritance in OOPM
 
C++.pptx
C++.pptxC++.pptx
C++.pptx
 
Inheritance.pptx
Inheritance.pptxInheritance.pptx
Inheritance.pptx
 
Introduction to object oriented programming concepts
Introduction to object oriented programming conceptsIntroduction to object oriented programming concepts
Introduction to object oriented programming concepts
 
Inheritance
InheritanceInheritance
Inheritance
 
Inheritance and Interfaces
Inheritance and InterfacesInheritance and Interfaces
Inheritance and Interfaces
 
10 inheritance
10 inheritance10 inheritance
10 inheritance
 
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptxinheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
inheriTANCE IN OBJECT ORIENTED PROGRAM.pptx
 
Unit3 java
Unit3 javaUnit3 java
Unit3 java
 
C++ presentation
C++ presentationC++ presentation
C++ presentation
 
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptxINHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
 
OOP Assign No.03(AP).pdf
OOP Assign No.03(AP).pdfOOP Assign No.03(AP).pdf
OOP Assign No.03(AP).pdf
 
Inheritance
InheritanceInheritance
Inheritance
 

Recently uploaded

"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 

Recently uploaded (20)

"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 

OOPS IN C++

  • 2. IN THE OOPS WE WILL PERFORMS VARIOUS COMPONENTS. 1)CLASS 2)OBJECT 3)ABSTRACT 4)ENCAPCULATION 5)INHERITANCE
  • 3. CLASS Class is a collection of member data and member function. Member data is a collection of attribute in a class. Member function is a collection of operation .It is perform in the class.
  • 4. SYNTAX OF CLASS Class classname { Private: All member data Public: All member function };
  • 5. EXAMPLE OF CLASS WITH THE HELP OF SUM OPERATION #include<conio.h> #include<iostream.h> Class sum { Private: int a,b,c; Public: void input() { Cout<<“enter the value of a and b variable”; Cin>>a>>b; }
  • 6. Void display() { C=a+b; Cout<<“value of sun is”<<c; } }; Void main() { Sum s; Clrscr(); s.input(); s.output(); Getch(); }
  • 7. OBJECT OBJECT Object is a real entity world. With the help of OBJECT we can call the member data and member function. It is just like a membership. Syntax of object: class name classobject; Classobject.mamber function();
  • 8. EXAMPLE OF CLASS AND OBJECT WITH THE HELP OF SUM OPERATION #include<conio.h> #include<iostream.h> Class sum { Private: int a,b,c; Public: void input() { Cout<<“enter the value of a and b variable”; Cin>>a>>b; }
  • 9. Void display() { C=a+b; Cout<<“value of sun is”<<c; } }; Void main() { Sum s; // Here (s) is a object . It is calling the member data and member function. Clrscr(); s.input(); s.output(); Getch(); }
  • 10. ABSTRACT An abstract class is, conceptually, a class that cannot be instantiated and is usually implemented as a class that has one or more pure virtual (abstract) functions. pure virtual function is one which must be overridden by any concrete (i.e., non-abstract) derived class. This is indicated in the declaration with the syntax " = 0" in the member function's declaration.
  • 11. ENCAPCULATION Encapsulation is the packing of data and functions into a single component. The features of encapsulation are supported using classes in most object-oriented programming languages, although other alternatives also exist. It allows selective hiding of properties and methods in an object by building an impenetrable wall to protect the code from accidental corruption. Best example of Encapsulations is class because it have the multiple of member data and member function in the same class.
  • 12. INHERITANCE With the help of inheritance we can reuse the data one class to anther class . Which have inherits the properties of base class is known as parents class/base class/super class. Which have inherits the properties of parents class is known as sub class/child class/inherit class. Inheritance seprate into many class… 1) Single Inheritance 4) Hybrid Inheritance 2) Hierarchical Inheritance 5) c 3) Multi Level Inheritance
  • 13. Single Inheritance when a single derived class is created from a single base class then the inheritance is called as single inheritance. BASE CLASS DERIVED CLASS It is known as single inheritance class.
  • 14. SYNTAX OF SINGLE INHERITANCE class a { Public: all member data; Public: all member function; }; class b:public a { Public: all member data; Public: all member function; };
  • 15. EXAMPLE OF SINGLE INHERITANCE #include<iostream.h> #include<conio.h> Class sum { Public: Int a=5,b=5,c; Public: void display() { c=a+b;
  • 16. cout<<“value of sum is”<<c; } }; class sub: public sum { Public: Int d; Public: void output()
  • 17. { d=a-b; cout<<“the value of subtraction is”<<d; } }; void main() { clrscr(); sub s; s.display(); s.output(); getch(); }
  • 18. Hierarchical Inheritance when more than one derived class are created from a single base class, then that inheritance is called as hierarchical inheritance. BASE CLASS DERIVED CLASS (2)DERIVED CLASS (1)
  • 19. SYNTAX OF HIEARCHICAL INHERITANCE Class a { Public: all member data; Public: all member function; }; Class b:public a { Public: all member data; Public: all member function; };
  • 20. Class c:public a { Private: all member data; Public: all member function; };
  • 21. EXAMPLE OF HIARCHICAL INHERITANCE #include<conio.h> #include<iostream.h> Class a { public : int a=10,b=2,c,d,e; Public: void output() { c=a-b; Cout<<“value of sum is”<<c; } }; class b:public a { Public: void display() {
  • 22. d=a-b; Cout<<“value of subtraction is; Cout<<d; } }; Class c:public { Public: void coutput() { e=a*b; Cout<<“multiplication is”<<e; } }; void main() { Clrscr(); a l; l.output();
  • 24. Multi Level Inheritance when a derived class is created from another derived class, then that inheritance is called as multi level inheritance. BASE CLASS DERIVED CLASS (1) DEEIVED CLASS(2)
  • 25. SYNTAX OF MULTILEVEL INHERITANCE Class a { Public: all member data; Public: all member function; }; Class b:public a { Public:all member data; Public:all member function; }; Class c:public c { Private:all member data; Private:all member function; };
  • 26. Hybrid Inheritance Hybrid inheritance is combination of two or more inheritances such as single,multiple,multilevel or Hierarchical inheritances. DREVIED CLASS(1) DERIVED CLASS(3) DERIVED CLASS(2) BASE CLASS
  • 27. SYNTAX OF HYBRID INHERITANCE Class a { Public:all member data; Public:all member function; }; Class b:public a { Public:all member data; Public:all member function; }; Class c:public c { Public:all member data; Public:all member function; }; Class d:public d { Public:all member data; Public:all member function; };
  • 28. Multiple Inheritance Deriving directly from more than one class is usually called multiple inheritance. BASE CLASS DERVIED CLASS(1) DERIVED CLASS(3) DERIVED CLASS (2) DERIVED CLASS(4)
  • 29. SYNTAX OF MULTIPLE INHERITANCE Class a { Public:all memberdata; Public:all member function; }; Class b:public a { Public:all memberdata; Public:all member function; }; Class c:public a { Public:all memberdata; Public:all member function; }; Class d:public b { Public:all memberdata; Public:all member function; };
  • 30. Class e:public c,public d { Private:all member data; Public:all member function; };www,cpd-india.com