SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
PersonData and CustomerData Classes Design a class named PersonData with the following
member variables: - 1 astName - firstName - address - city - state - zip - phone Write the
appropriate accessor and mutator functions for these member variables. Next, design a class
named CustomerData, which is derived from the PersonData class. The CustomerData class
should have the following member variables: - customerNumber - maitingList The
customerNumber variable will be used to hold a unique integer for each customer. The
mailingList variable should be a boo1. It will be set to true if the customer wishes to be on a
mailing list, or fal se if the customer does not wish to be on a mailing list. Write appropriate
accessor and mutator functions for these member variables. Demonstrate an object of the
CustomerData class in a simple program.

Contenu connexe

Plus de tuffail786

Pharoah Company has four operating divisions. During the first quarte.pdf
 Pharoah Company has four operating divisions. During the first quarte.pdf Pharoah Company has four operating divisions. During the first quarte.pdf
Pharoah Company has four operating divisions. During the first quarte.pdftuffail786
 
Pharoah Company has a balance in its Accounts Payable control account.pdf
 Pharoah Company has a balance in its Accounts Payable control account.pdf Pharoah Company has a balance in its Accounts Payable control account.pdf
Pharoah Company has a balance in its Accounts Payable control account.pdftuffail786
 
Pettijohn Inc. The balance sheet and income statement shown below a.pdf
 Pettijohn Inc. The balance sheet and income statement shown below a.pdf Pettijohn Inc. The balance sheet and income statement shown below a.pdf
Pettijohn Inc. The balance sheet and income statement shown below a.pdftuffail786
 
Person or People Write a single print statement that prints 1 person.pdf
 Person or People Write a single print statement that prints 1 person.pdf Person or People Write a single print statement that prints 1 person.pdf
Person or People Write a single print statement that prints 1 person.pdftuffail786
 
payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf
 payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf
payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdftuffail786
 
Pe fumtinace Porformance revicu may be done for p.pdf
 Pe fumtinace Porformance revicu may be done for p.pdf Pe fumtinace Porformance revicu may be done for p.pdf
Pe fumtinace Porformance revicu may be done for p.pdftuffail786
 
People often criticize Null Hypothesis Significance Testing (NHST) be.pdf
 People often criticize Null Hypothesis Significance Testing (NHST) be.pdf People often criticize Null Hypothesis Significance Testing (NHST) be.pdf
People often criticize Null Hypothesis Significance Testing (NHST) be.pdftuffail786
 
Pass by Value (this term to be explained later - not necessary to und.pdf
 Pass by Value (this term to be explained later - not necessary to und.pdf Pass by Value (this term to be explained later - not necessary to und.pdf
Pass by Value (this term to be explained later - not necessary to und.pdftuffail786
 
Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf
 Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf
Part V - Living with SEDC and Future Prospects When Janet was searchi.pdftuffail786
 
parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf
 parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf
parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdftuffail786
 
Paseo del cementerio Pasaje TEAS VI Caminata por el cementerio S.pdf
 Paseo del cementerio Pasaje TEAS VI  Caminata por el cementerio S.pdf Paseo del cementerio Pasaje TEAS VI  Caminata por el cementerio S.pdf
Paseo del cementerio Pasaje TEAS VI Caminata por el cementerio S.pdftuffail786
 
Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf
 Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf
Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdftuffail786
 
�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf
�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf
�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdftuffail786
 
�Cu�l de los siguientes es cierto de los vendedores a. Desempe�an .pdf
�Cu�l de los siguientes es cierto de los vendedores  a. Desempe�an .pdf�Cu�l de los siguientes es cierto de los vendedores  a. Desempe�an .pdf
�Cu�l de los siguientes es cierto de los vendedores a. Desempe�an .pdftuffail786
 
�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf
�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf
�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdftuffail786
 
�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf
�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf
�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdftuffail786
 
�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf
�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf
�Cu�l de los siguientes describe correctamente el tratamiento contab.pdftuffail786
 
�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf
�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf
�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdftuffail786
 
�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf
�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf
�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdftuffail786
 
�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf
�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf
�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdftuffail786
 

Plus de tuffail786 (20)

Pharoah Company has four operating divisions. During the first quarte.pdf
 Pharoah Company has four operating divisions. During the first quarte.pdf Pharoah Company has four operating divisions. During the first quarte.pdf
Pharoah Company has four operating divisions. During the first quarte.pdf
 
Pharoah Company has a balance in its Accounts Payable control account.pdf
 Pharoah Company has a balance in its Accounts Payable control account.pdf Pharoah Company has a balance in its Accounts Payable control account.pdf
Pharoah Company has a balance in its Accounts Payable control account.pdf
 
Pettijohn Inc. The balance sheet and income statement shown below a.pdf
 Pettijohn Inc. The balance sheet and income statement shown below a.pdf Pettijohn Inc. The balance sheet and income statement shown below a.pdf
Pettijohn Inc. The balance sheet and income statement shown below a.pdf
 
Person or People Write a single print statement that prints 1 person.pdf
 Person or People Write a single print statement that prints 1 person.pdf Person or People Write a single print statement that prints 1 person.pdf
Person or People Write a single print statement that prints 1 person.pdf
 
payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf
 payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf
payments for the frst quater of 2004 Cash Anceipta trem Cuktomers Acc.pdf
 
Pe fumtinace Porformance revicu may be done for p.pdf
 Pe fumtinace Porformance revicu may be done for p.pdf Pe fumtinace Porformance revicu may be done for p.pdf
Pe fumtinace Porformance revicu may be done for p.pdf
 
People often criticize Null Hypothesis Significance Testing (NHST) be.pdf
 People often criticize Null Hypothesis Significance Testing (NHST) be.pdf People often criticize Null Hypothesis Significance Testing (NHST) be.pdf
People often criticize Null Hypothesis Significance Testing (NHST) be.pdf
 
Pass by Value (this term to be explained later - not necessary to und.pdf
 Pass by Value (this term to be explained later - not necessary to und.pdf Pass by Value (this term to be explained later - not necessary to und.pdf
Pass by Value (this term to be explained later - not necessary to und.pdf
 
Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf
 Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf
Part V - Living with SEDC and Future Prospects When Janet was searchi.pdf
 
parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf
 parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf
parte 3 SR es una mujer de 65 a�os que acude al servicio de.pdf
 
Paseo del cementerio Pasaje TEAS VI Caminata por el cementerio S.pdf
 Paseo del cementerio Pasaje TEAS VI  Caminata por el cementerio S.pdf Paseo del cementerio Pasaje TEAS VI  Caminata por el cementerio S.pdf
Paseo del cementerio Pasaje TEAS VI Caminata por el cementerio S.pdf
 
Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf
 Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf
Part III Four types of goods 4. (1 point total,0.25 points each) Be.pdf
 
�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf
�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf
�Cu�l de los siguientes es cierto para los transposones de ADN sele.pdf
 
�Cu�l de los siguientes es cierto de los vendedores a. Desempe�an .pdf
�Cu�l de los siguientes es cierto de los vendedores  a. Desempe�an .pdf�Cu�l de los siguientes es cierto de los vendedores  a. Desempe�an .pdf
�Cu�l de los siguientes es cierto de los vendedores a. Desempe�an .pdf
 
�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf
�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf
�Cu�l de los siguientes es cierto con respecto a los dividendos Opc.pdf
 
�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf
�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf
�Cu�l de los siguientes describe mejor la ruta de una RFP 1- Un c.pdf
 
�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf
�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf
�Cu�l de los siguientes describe correctamente el tratamiento contab.pdf
 
�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf
�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf
�Cu�l de los siguientes cuatro elementos es fundamental para la ejec.pdf
 
�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf
�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf
�Cu�l de los siguientes debe hacer un gerente de proyecto para crear.pdf
 
�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf
�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf
�Cu�l de los siguientes describe mejor el programa de respaldo utili.pdf
 

Dernier

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
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
 
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
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
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
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Dernier (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
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
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
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...
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

PersonData and CustomerData Classes Design a class named PersonData w.pdf

  • 1. PersonData and CustomerData Classes Design a class named PersonData with the following member variables: - 1 astName - firstName - address - city - state - zip - phone Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData, which is derived from the PersonData class. The CustomerData class should have the following member variables: - customerNumber - maitingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a boo1. It will be set to true if the customer wishes to be on a mailing list, or fal se if the customer does not wish to be on a mailing list. Write appropriate accessor and mutator functions for these member variables. Demonstrate an object of the CustomerData class in a simple program.