SlideShare a Scribd company logo
1 of 1
Download to read offline
Write your standard C + + codes to do the following (for class both interface and
implementation): 1. Declare a class named Student in C++ syntax to model the object - a student
with the following features (as in a header file): - the private portion of the class Student for
people consisting of an integer for ID and a char pointer to a dynamic array for the name. - the
public member functions in the Student class should include - default constructor for a person
named "John" and ID is 987654321 - constructor to initialize the name and ID by passing the
values - int get_id() const; // accessor to retrieve student's ID - void set_name(char
new_name[]]); // mutator to set or change student's name - destructor; - copy constructor -
overload operator = - a print function to print the Student information in the format: Student's
name (Student's ID), example: John (987654321) 2. Implement all the above member functions
(as in the .cpp file) in the class Student and overload output operator <<

More Related Content

Similar to Write your standard C++ codes to do the following (for class both inte.pdf

Chapter22 static-class-member-example
Chapter22 static-class-member-exampleChapter22 static-class-member-example
Chapter22 static-class-member-exampleDeepak Singh
 
C++ppt. Classs and object, class and object
C++ppt. Classs and object, class and objectC++ppt. Classs and object, class and object
C++ppt. Classs and object, class and objectsecondakay
 
Assignment Examples Final 07 Oct
Assignment Examples Final 07 OctAssignment Examples Final 07 Oct
Assignment Examples Final 07 OctSriram Raj
 
C++ Classes Tutorials.ppt
C++ Classes Tutorials.pptC++ Classes Tutorials.ppt
C++ Classes Tutorials.pptaasuran
 
Lec 5 13_aug [compatibility mode]
Lec 5 13_aug [compatibility mode]Lec 5 13_aug [compatibility mode]
Lec 5 13_aug [compatibility mode]Palak Sanghani
 
Learning C++ - Class 4
Learning C++ - Class 4Learning C++ - Class 4
Learning C++ - Class 4Ali Aminian
 
A457405934_21789_26_2018_Inheritance.ppt
A457405934_21789_26_2018_Inheritance.pptA457405934_21789_26_2018_Inheritance.ppt
A457405934_21789_26_2018_Inheritance.pptRithwikRanjan
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorialsMayank Jain
 
constructors.pptx
constructors.pptxconstructors.pptx
constructors.pptxEpsiba1
 
Chapter 6.6
Chapter 6.6Chapter 6.6
Chapter 6.6sotlsoc
 
Object Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsObject Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsMuhammadTalha436
 
Oop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer MelayiOop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer MelayiMuhammed Thanveer M
 
Constructor and desturctor
Constructor and desturctorConstructor and desturctor
Constructor and desturctorSomnath Kulkarni
 

Similar to Write your standard C++ codes to do the following (for class both inte.pdf (20)

Chapter22 static-class-member-example
Chapter22 static-class-member-exampleChapter22 static-class-member-example
Chapter22 static-class-member-example
 
C++ppt. Classs and object, class and object
C++ppt. Classs and object, class and objectC++ppt. Classs and object, class and object
C++ppt. Classs and object, class and object
 
OOC MODULE1.pptx
OOC MODULE1.pptxOOC MODULE1.pptx
OOC MODULE1.pptx
 
Assignment Examples Final 07 Oct
Assignment Examples Final 07 OctAssignment Examples Final 07 Oct
Assignment Examples Final 07 Oct
 
Class and object in C++ By Pawan Thakur
Class and object in C++ By Pawan ThakurClass and object in C++ By Pawan Thakur
Class and object in C++ By Pawan Thakur
 
C++ Classes Tutorials.ppt
C++ Classes Tutorials.pptC++ Classes Tutorials.ppt
C++ Classes Tutorials.ppt
 
Lec 5 13_aug [compatibility mode]
Lec 5 13_aug [compatibility mode]Lec 5 13_aug [compatibility mode]
Lec 5 13_aug [compatibility mode]
 
Learning C++ - Class 4
Learning C++ - Class 4Learning C++ - Class 4
Learning C++ - Class 4
 
Constructor,destructors cpp
Constructor,destructors cppConstructor,destructors cpp
Constructor,destructors cpp
 
UNIT I (1).ppt
UNIT I (1).pptUNIT I (1).ppt
UNIT I (1).ppt
 
UNIT I (1).ppt
UNIT I (1).pptUNIT I (1).ppt
UNIT I (1).ppt
 
A457405934_21789_26_2018_Inheritance.ppt
A457405934_21789_26_2018_Inheritance.pptA457405934_21789_26_2018_Inheritance.ppt
A457405934_21789_26_2018_Inheritance.ppt
 
C++ classes tutorials
C++ classes tutorialsC++ classes tutorials
C++ classes tutorials
 
Object Oriented Programming using C++ - Part 2
Object Oriented Programming using C++ - Part 2Object Oriented Programming using C++ - Part 2
Object Oriented Programming using C++ - Part 2
 
constructors.pptx
constructors.pptxconstructors.pptx
constructors.pptx
 
Objective c intro (1)
Objective c intro (1)Objective c intro (1)
Objective c intro (1)
 
Chapter 6.6
Chapter 6.6Chapter 6.6
Chapter 6.6
 
Object Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsObject Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ Exams
 
Oop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer MelayiOop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer Melayi
 
Constructor and desturctor
Constructor and desturctorConstructor and desturctor
Constructor and desturctor
 

More from AARVEEKNITWEAR

XYZ Corporation is a multinational organization that has several offic.pdf
XYZ Corporation is a multinational organization that has several offic.pdfXYZ Corporation is a multinational organization that has several offic.pdf
XYZ Corporation is a multinational organization that has several offic.pdfAARVEEKNITWEAR
 
XYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdf
XYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdfXYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdf
XYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdfAARVEEKNITWEAR
 
XCode Weather Forecast with Arrays Exercise I began revising similar c.pdf
XCode Weather Forecast with Arrays Exercise I began revising similar c.pdfXCode Weather Forecast with Arrays Exercise I began revising similar c.pdf
XCode Weather Forecast with Arrays Exercise I began revising similar c.pdfAARVEEKNITWEAR
 
XYZ Company is considering three different plans for financing their o.pdf
XYZ Company is considering three different plans for financing their o.pdfXYZ Company is considering three different plans for financing their o.pdf
XYZ Company is considering three different plans for financing their o.pdfAARVEEKNITWEAR
 
X-1 Corp's total assets at the end of last year were $480-000 and its.pdf
X-1 Corp's total assets at the end of last year were $480-000 and its.pdfX-1 Corp's total assets at the end of last year were $480-000 and its.pdf
X-1 Corp's total assets at the end of last year were $480-000 and its.pdfAARVEEKNITWEAR
 
X Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdfX Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdfAARVEEKNITWEAR
 
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdfx This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdfAARVEEKNITWEAR
 
X is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdfX is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdfAARVEEKNITWEAR
 
X and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdfX and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdfAARVEEKNITWEAR
 
X 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdfX 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdfAARVEEKNITWEAR
 
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdfx AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdfAARVEEKNITWEAR
 
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdfWynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdfAARVEEKNITWEAR
 
Writing the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdfWriting the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdfAARVEEKNITWEAR
 
Write the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdfWrite the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdfAARVEEKNITWEAR
 
Write the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdfWrite the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdfAARVEEKNITWEAR
 
Write the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdfWrite the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdfAARVEEKNITWEAR
 
Write the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdfWrite the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdfAARVEEKNITWEAR
 

More from AARVEEKNITWEAR (20)

XYZ Corporation is a multinational organization that has several offic.pdf
XYZ Corporation is a multinational organization that has several offic.pdfXYZ Corporation is a multinational organization that has several offic.pdf
XYZ Corporation is a multinational organization that has several offic.pdf
 
XYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdf
XYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdfXYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdf
XYZ Co- stock sells for $42 and just a paid a dividend of $2- Dividend.pdf
 
XCode Weather Forecast with Arrays Exercise I began revising similar c.pdf
XCode Weather Forecast with Arrays Exercise I began revising similar c.pdfXCode Weather Forecast with Arrays Exercise I began revising similar c.pdf
XCode Weather Forecast with Arrays Exercise I began revising similar c.pdf
 
XYZ Company is considering three different plans for financing their o.pdf
XYZ Company is considering three different plans for financing their o.pdfXYZ Company is considering three different plans for financing their o.pdf
XYZ Company is considering three different plans for financing their o.pdf
 
x7x1-1.pdf
x7x1-1.pdfx7x1-1.pdf
x7x1-1.pdf
 
x-xp(x)dx-xe(x)22.pdf
x-xp(x)dx-xe(x)22.pdfx-xp(x)dx-xe(x)22.pdf
x-xp(x)dx-xe(x)22.pdf
 
x---.pdf
x---.pdfx---.pdf
x---.pdf
 
X-1 Corp's total assets at the end of last year were $480-000 and its.pdf
X-1 Corp's total assets at the end of last year were $480-000 and its.pdfX-1 Corp's total assets at the end of last year were $480-000 and its.pdf
X-1 Corp's total assets at the end of last year were $480-000 and its.pdf
 
X Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdfX Most sensory neurons belong to what structural type of neurons- Sele.pdf
X Most sensory neurons belong to what structural type of neurons- Sele.pdf
 
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdfx This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
x This is teice the prosabity ol he reptat vifendes thingetsabilias ar.pdf
 
X is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdfX is a discrete random variable with probability density function f gi.pdf
X is a discrete random variable with probability density function f gi.pdf
 
X and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdfX and Y are independently distributed random variables- The marginal d (1).pdf
X and Y are independently distributed random variables- The marginal d (1).pdf
 
X 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdfX 3- What gets printed- 14.pdf
X 3- What gets printed- 14.pdf
 
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdfx AutoSave Ooff  File for Midterm - Excel File Home Insert Draw Page L.pdf
x AutoSave Ooff File for Midterm - Excel File Home Insert Draw Page L.pdf
 
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdfWynn Farms reported a net operating loss of $195-000 for financial rep.pdf
Wynn Farms reported a net operating loss of $195-000 for financial rep.pdf
 
Writing the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdfWriting the Meanings of Word Parts Write the meanings of the following.pdf
Writing the Meanings of Word Parts Write the meanings of the following.pdf
 
Write the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdfWrite the SQL code to generate the total hours worked and the total ch.pdf
Write the SQL code to generate the total hours worked and the total ch.pdf
 
Write the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdfWrite the pseudocode snippet to declare and initialise the following a.pdf
Write the pseudocode snippet to declare and initialise the following a.pdf
 
Write the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdfWrite the java statement that should appear after the comments- (After.pdf
Write the java statement that should appear after the comments- (After.pdf
 
Write the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdfWrite the jOuery mathods that attsched to event handler funotions to a.pdf
Write the jOuery mathods that attsched to event handler funotions to a.pdf
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 

Write your standard C++ codes to do the following (for class both inte.pdf

  • 1. Write your standard C + + codes to do the following (for class both interface and implementation): 1. Declare a class named Student in C++ syntax to model the object - a student with the following features (as in a header file): - the private portion of the class Student for people consisting of an integer for ID and a char pointer to a dynamic array for the name. - the public member functions in the Student class should include - default constructor for a person named "John" and ID is 987654321 - constructor to initialize the name and ID by passing the values - int get_id() const; // accessor to retrieve student's ID - void set_name(char new_name[]]); // mutator to set or change student's name - destructor; - copy constructor - overload operator = - a print function to print the Student information in the format: Student's name (Student's ID), example: John (987654321) 2. Implement all the above member functions (as in the .cpp file) in the class Student and overload output operator <<