SlideShare a Scribd company logo
1 of 2
#include<iostream> 
using namespace std; 
class waqar{ 
int r; 
string n; 
float g; 
public: 
void khan() { 
cout<<"nEnter your roll numbern"; 
cin>>r; 
cout<<"Enter your name n"; 
cin>>n; 
cout<<"Enter your gpa n"; 
cin>>g; 
} 
waqar(); 
void mama(); 
void shah(){ 
cout<<"ni am shah"; 
} 
}; 
waqar::waqar(){
cout<<"I am waqar hussainn"; 
cout<<"Software Engineering from Abasyn university peshawar"; 
}; 
void waqar::mama(){ 
cout<<"Your roll number is = "<<r<<endl; 
cout<<"your Name is = "<<n<<endl; 
cout<<"Your Gpa is = "<<g<<endl; 
}; 
main() 
{ 
waqar b,f; 
f.shah(); 
b.khan(); 
b.mama(); 
int a; 
cout<<"enter Exit to end program"; 
cin>>a; 
}

More Related Content

What's hot

คำสั่ง Do while
คำสั่ง Do whileคำสั่ง Do while
คำสั่ง Do while
kramsri
 

What's hot (17)

Textile
TextileTextile
Textile
 
Game Analytics Cluster Scheduler
Game Analytics Cluster SchedulerGame Analytics Cluster Scheduler
Game Analytics Cluster Scheduler
 
Asynchronní programování
Asynchronní programováníAsynchronní programování
Asynchronní programování
 
Live in shell
Live in shellLive in shell
Live in shell
 
Use of django at jolt online v3
Use of django at jolt online v3Use of django at jolt online v3
Use of django at jolt online v3
 
JSUG - Scala Lightning Talk by Michael Greifeneder
JSUG - Scala Lightning Talk by Michael GreifenederJSUG - Scala Lightning Talk by Michael Greifeneder
JSUG - Scala Lightning Talk by Michael Greifeneder
 
Simple tricks to speed you up on the command line
Simple tricks to speed you up on the command lineSimple tricks to speed you up on the command line
Simple tricks to speed you up on the command line
 
Rails Scripts
Rails ScriptsRails Scripts
Rails Scripts
 
BreeCS Example Report - Timesheet (All Users, month, summary)
BreeCS Example Report - Timesheet (All Users, month, summary)BreeCS Example Report - Timesheet (All Users, month, summary)
BreeCS Example Report - Timesheet (All Users, month, summary)
 
คำสั่ง Do while
คำสั่ง Do whileคำสั่ง Do while
คำสั่ง Do while
 
Flink meetup
Flink meetupFlink meetup
Flink meetup
 
A Shiny Example-- R
A Shiny Example-- RA Shiny Example-- R
A Shiny Example-- R
 
Spatial script for MongoBoulder
Spatial script for MongoBoulderSpatial script for MongoBoulder
Spatial script for MongoBoulder
 
bengar
bengarbengar
bengar
 
Test Automation Using Googletest
Test Automation Using GoogletestTest Automation Using Googletest
Test Automation Using Googletest
 
Loops (1)
Loops (1)Loops (1)
Loops (1)
 
Qtp Scripts
Qtp ScriptsQtp Scripts
Qtp Scripts
 

Viewers also liked (6)

Magazine29
Magazine29Magazine29
Magazine29
 
C:\Fakepath\Democracia Participativa Mito O Realidad
C:\Fakepath\Democracia Participativa Mito O RealidadC:\Fakepath\Democracia Participativa Mito O Realidad
C:\Fakepath\Democracia Participativa Mito O Realidad
 
Infoxicación
InfoxicaciónInfoxicación
Infoxicación
 
Redessociales sep2010
Redessociales sep2010Redessociales sep2010
Redessociales sep2010
 
Como leer la Biblia
Como leer la BibliaComo leer la Biblia
Como leer la Biblia
 
Proyecto Facebook Presentación Tamara Minutello
Proyecto Facebook Presentación Tamara MinutelloProyecto Facebook Presentación Tamara Minutello
Proyecto Facebook Presentación Tamara Minutello
 

More from HSS-Software House (8)

Class & sub class
Class & sub classClass & sub class
Class & sub class
 
Inhertance
InhertanceInhertance
Inhertance
 
Parent & child
Parent & childParent & child
Parent & child
 
Constructor in detail
Constructor in detailConstructor in detail
Constructor in detail
 
C++
C++C++
C++
 
Constructor
ConstructorConstructor
Constructor
 
Claas waqar
Claas waqarClaas waqar
Claas waqar
 
Class
ClassClass
Class
 

Recently uploaded

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Recently uploaded (20)

%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid Environments
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 

Class with function & objects

  • 1. #include<iostream> using namespace std; class waqar{ int r; string n; float g; public: void khan() { cout<<"nEnter your roll numbern"; cin>>r; cout<<"Enter your name n"; cin>>n; cout<<"Enter your gpa n"; cin>>g; } waqar(); void mama(); void shah(){ cout<<"ni am shah"; } }; waqar::waqar(){
  • 2. cout<<"I am waqar hussainn"; cout<<"Software Engineering from Abasyn university peshawar"; }; void waqar::mama(){ cout<<"Your roll number is = "<<r<<endl; cout<<"your Name is = "<<n<<endl; cout<<"Your Gpa is = "<<g<<endl; }; main() { waqar b,f; f.shah(); b.khan(); b.mama(); int a; cout<<"enter Exit to end program"; cin>>a; }