SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
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.

Mais conteúdo relacionado

Mais de tuffail786

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
tuffail786
 
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
tuffail786
 
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
tuffail786
 

Mais 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
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
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
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING 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.