SlideShare a Scribd company logo
#include <iostream> 
using namespace std; 
//Class is the combination of function & data members 
//Class are 3 types 
/* 
1 Private 
2 Public 
3 Protect 
If we write or not write Private this is By default 
like keywords 
Private is only accessable only in Class 
Private is accessable only by Public 
*/ 
class waqar { 
//there i write or not Private it means that there is private 
private: 
//declaration of data type or meber or data members 
// like 
int a; 
//to access int a; we Use Public 
public: 
//we can'nt use this type of sentance here 
// In class we can only use Function & data members 
//here you can write your own sentance 
//Like 
//cout<<"Enter your Roll Numbern"; 
//Here we Use cin keyword to get data from Keyboard 
//cin>>a; 
//Make your Function 
//Like 
int waqar1() 
//I make fuction Name of waqar1 
{ 
cout<<"Enter your roll Non"; 
cin>>a; 
} 
}; 
//Use main function 
main() 
{ 
//Here you can declare this class you can make 
waqar wq; 
//wq is called object 
//Calling of class you need object 
wq.waqar1(); 
//this is hole Program of using class 
}

More Related Content

Viewers also liked

Ejeplos de sistema de contreol en la indistria alimentaria
Ejeplos de sistema de contreol en la indistria alimentariaEjeplos de sistema de contreol en la indistria alimentaria
Ejeplos de sistema de contreol en la indistria alimentaria
Joan Mendoza
 
Estados unidos
Estados unidosEstados unidos
Estados unidosbenja_093
 
Plan de marketing
Plan de marketingPlan de marketing
Plan de marketing
cometeelmundo
 
El Hinduismo
El HinduismoEl Hinduismo
El Hinduismo
Gema79
 
Graficacreativa
GraficacreativaGraficacreativa
Graficacreativa
Juan José Retamal
 
Kareen-subir
Kareen-subirKareen-subir
Kareen-subir
Kareen Archila
 
Educar para humanizar
Educar para humanizarEducar para humanizar
Educar para humanizar
Mariana Carranza Ancajima
 
Quién es san nicolás
Quién es san nicolásQuién es san nicolás
Quién es san nicolás
VirtuRA
 
Modulo gestioninformatica
Modulo gestioninformaticaModulo gestioninformatica
Modulo gestioninformaticaShirley Flórez
 
Descubriendo el cerebro_y_la_mente_n66 - copia
Descubriendo el cerebro_y_la_mente_n66 - copiaDescubriendo el cerebro_y_la_mente_n66 - copia
Descubriendo el cerebro_y_la_mente_n66 - copiamonip31
 
APLICACIÓN DE FACEBOOK
APLICACIÓN DE FACEBOOKAPLICACIÓN DE FACEBOOK
APLICACIÓN DE FACEBOOK
guest32a8b16
 
Paradigmas del pensamiento politico
Paradigmas del pensamiento politicoParadigmas del pensamiento politico
Paradigmas del pensamiento politicojosearango6887
 
Manual de comunicacion comunitaria minist desarrollo soc
Manual de comunicacion comunitaria minist desarrollo socManual de comunicacion comunitaria minist desarrollo soc
Manual de comunicacion comunitaria minist desarrollo socMaria Belén Laurito
 
Autismopdf
AutismopdfAutismopdf
Autismopdfdany-07
 

Viewers also liked (19)

Ejeplos de sistema de contreol en la indistria alimentaria
Ejeplos de sistema de contreol en la indistria alimentariaEjeplos de sistema de contreol en la indistria alimentaria
Ejeplos de sistema de contreol en la indistria alimentaria
 
Estados unidos
Estados unidosEstados unidos
Estados unidos
 
Transmedia
TransmediaTransmedia
Transmedia
 
Plan de marketing
Plan de marketingPlan de marketing
Plan de marketing
 
El Hinduismo
El HinduismoEl Hinduismo
El Hinduismo
 
Graficacreativa
GraficacreativaGraficacreativa
Graficacreativa
 
Kareen-subir
Kareen-subirKareen-subir
Kareen-subir
 
Educar para humanizar
Educar para humanizarEducar para humanizar
Educar para humanizar
 
Quién es san nicolás
Quién es san nicolásQuién es san nicolás
Quién es san nicolás
 
Modulo gestioninformatica
Modulo gestioninformaticaModulo gestioninformatica
Modulo gestioninformatica
 
Web 1 y 2
Web 1 y 2Web 1 y 2
Web 1 y 2
 
Descubriendo el cerebro_y_la_mente_n66 - copia
Descubriendo el cerebro_y_la_mente_n66 - copiaDescubriendo el cerebro_y_la_mente_n66 - copia
Descubriendo el cerebro_y_la_mente_n66 - copia
 
APLICACIÓN DE FACEBOOK
APLICACIÓN DE FACEBOOKAPLICACIÓN DE FACEBOOK
APLICACIÓN DE FACEBOOK
 
Paradigmas del pensamiento politico
Paradigmas del pensamiento politicoParadigmas del pensamiento politico
Paradigmas del pensamiento politico
 
Tendencias mundiales del periodismo que vigila
Tendencias mundiales del periodismo que vigilaTendencias mundiales del periodismo que vigila
Tendencias mundiales del periodismo que vigila
 
Manual de comunicacion comunitaria minist desarrollo soc
Manual de comunicacion comunitaria minist desarrollo socManual de comunicacion comunitaria minist desarrollo soc
Manual de comunicacion comunitaria minist desarrollo soc
 
Autismopdf
AutismopdfAutismopdf
Autismopdf
 
Neuromarketing
NeuromarketingNeuromarketing
Neuromarketing
 
Que
 Que Que
Que
 

Similar to Claas waqar

Constructor in detail
Constructor in detailConstructor in detail
Constructor in detail
HSS-Software House
 
Access controlaspecifier and visibilty modes
Access controlaspecifier and visibilty modesAccess controlaspecifier and visibilty modes
Access controlaspecifier and visibilty modes
Vinay Kumar
 
INTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptx
INTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptxINTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptx
INTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptx
DeepasCSE
 
Inheritance.ppt
Inheritance.pptInheritance.ppt
Inheritance.ppt
JP2B1197685ARamSaiPM
 
Friend function in c++
Friend function in c++ Friend function in c++
Friend function in c++
University of Madras
 
00ps inheritace using c++
00ps inheritace using c++00ps inheritace using c++
00ps inheritace using c++
sushamaGavarskar1
 
Access specifier
Access specifierAccess specifier
Access specifier
zindadili
 
OOPs & C++ UNIT 3
OOPs & C++ UNIT 3OOPs & C++ UNIT 3
OOPs & C++ UNIT 3
SURBHI SAROHA
 
Commenting in Agile Development
Commenting in Agile DevelopmentCommenting in Agile Development
Commenting in Agile DevelopmentJan Rybák Benetka
 
SodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptx
SodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptxSodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptx
SodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptx
RudranilDas11
 
02-OOP with Java.ppt
02-OOP with Java.ppt02-OOP with Java.ppt
02-OOP with Java.ppt
EmanAsem4
 
Oop lect3.pptx
Oop lect3.pptxOop lect3.pptx
Oop lect3.pptx
MrMudassir
 
Packages and interfaces
Packages and interfacesPackages and interfaces
Packages and interfaces
bhuvaneshwariA5
 
Chapter 3.4
Chapter 3.4Chapter 3.4
Chapter 3.4sotlsoc
 
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdfplease navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
aioils
 
Can someoen help me to write c++ program including C++ inheritance, .pdf
Can someoen help me to write c++ program including C++ inheritance, .pdfCan someoen help me to write c++ program including C++ inheritance, .pdf
Can someoen help me to write c++ program including C++ inheritance, .pdf
arrowvisionoptics
 
Class and object
Class and objectClass and object
Class and object
MushfiqurRahaman7
 
Chapter23 friend-function-friend-class
Chapter23 friend-function-friend-classChapter23 friend-function-friend-class
Chapter23 friend-function-friend-classDeepak Singh
 
Csharp4 objects and_types
Csharp4 objects and_typesCsharp4 objects and_types
Csharp4 objects and_typesAbed Bukhari
 

Similar to Claas waqar (20)

Constructor in detail
Constructor in detailConstructor in detail
Constructor in detail
 
Access controlaspecifier and visibilty modes
Access controlaspecifier and visibilty modesAccess controlaspecifier and visibilty modes
Access controlaspecifier and visibilty modes
 
INTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptx
INTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptxINTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptx
INTRODUCTION TO OBJECT ORIENTED PROGRAMMING.pptx
 
Inheritance.ppt
Inheritance.pptInheritance.ppt
Inheritance.ppt
 
Friend function in c++
Friend function in c++ Friend function in c++
Friend function in c++
 
00ps inheritace using c++
00ps inheritace using c++00ps inheritace using c++
00ps inheritace using c++
 
Access specifier
Access specifierAccess specifier
Access specifier
 
OOPs & C++ UNIT 3
OOPs & C++ UNIT 3OOPs & C++ UNIT 3
OOPs & C++ UNIT 3
 
Whats New In C# 3.0
Whats New In C# 3.0Whats New In C# 3.0
Whats New In C# 3.0
 
Commenting in Agile Development
Commenting in Agile DevelopmentCommenting in Agile Development
Commenting in Agile Development
 
SodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptx
SodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptxSodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptx
SodaPDF-converted-inheritanceinjava-120903114217-phpapp02-converted.pptx
 
02-OOP with Java.ppt
02-OOP with Java.ppt02-OOP with Java.ppt
02-OOP with Java.ppt
 
Oop lect3.pptx
Oop lect3.pptxOop lect3.pptx
Oop lect3.pptx
 
Packages and interfaces
Packages and interfacesPackages and interfaces
Packages and interfaces
 
Chapter 3.4
Chapter 3.4Chapter 3.4
Chapter 3.4
 
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdfplease navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
 
Can someoen help me to write c++ program including C++ inheritance, .pdf
Can someoen help me to write c++ program including C++ inheritance, .pdfCan someoen help me to write c++ program including C++ inheritance, .pdf
Can someoen help me to write c++ program including C++ inheritance, .pdf
 
Class and object
Class and objectClass and object
Class and object
 
Chapter23 friend-function-friend-class
Chapter23 friend-function-friend-classChapter23 friend-function-friend-class
Chapter23 friend-function-friend-class
 
Csharp4 objects and_types
Csharp4 objects and_typesCsharp4 objects and_types
Csharp4 objects and_types
 

More from HSS-Software House

Whole c++
Whole c++Whole c++
Class & sub class
Class & sub classClass & sub class
Class & sub class
HSS-Software House
 
Inhertance
InhertanceInhertance
Inhertance
HSS-Software House
 
Parent & child
Parent & childParent & child
Parent & child
HSS-Software House
 
Class with function & objects
Class with function & objectsClass with function & objects
Class with function & objects
HSS-Software House
 
C++
C++C++
Constructor
ConstructorConstructor
Constructor
HSS-Software House
 
Class
ClassClass

More from HSS-Software House (8)

Whole c++
Whole c++Whole c++
Whole c++
 
Class & sub class
Class & sub classClass & sub class
Class & sub class
 
Inhertance
InhertanceInhertance
Inhertance
 
Parent & child
Parent & childParent & child
Parent & child
 
Class with function & objects
Class with function & objectsClass with function & objects
Class with function & objects
 
C++
C++C++
C++
 
Constructor
ConstructorConstructor
Constructor
 
Class
ClassClass
Class
 

Recently uploaded

OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 

Recently uploaded (20)

OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 

Claas waqar

  • 1. #include <iostream> using namespace std; //Class is the combination of function & data members //Class are 3 types /* 1 Private 2 Public 3 Protect If we write or not write Private this is By default like keywords Private is only accessable only in Class Private is accessable only by Public */ class waqar { //there i write or not Private it means that there is private private: //declaration of data type or meber or data members // like int a; //to access int a; we Use Public public: //we can'nt use this type of sentance here // In class we can only use Function & data members //here you can write your own sentance //Like //cout<<"Enter your Roll Numbern"; //Here we Use cin keyword to get data from Keyboard //cin>>a; //Make your Function //Like int waqar1() //I make fuction Name of waqar1 { cout<<"Enter your roll Non"; cin>>a; } }; //Use main function main() { //Here you can declare this class you can make waqar wq; //wq is called object //Calling of class you need object wq.waqar1(); //this is hole Program of using class }