SlideShare a Scribd company logo
1 of 1
Download to read offline
C++ For each of the following groups of classes, describe or draw a diagram to indicate whether
you would use direct inheritance, aggregation (containership), or multiple inheritance to combine
them. (15 points) (a) class Building class House (b) class Birthday class Person (c) class Door
class LockableDoor (d) class Vehicle and class Radio class Car (e) class Clock and class Radio
class ClockRadio Explain in detail these uses of the const keyword (9 points) Distance AddDist(
Distance d) const ; Distance AddDist ( const Distance &d ) ;

More Related Content

More from sels6

CalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdf
CalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdfCalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdf
CalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdfsels6
 
Complete the method count which should be a wrapper method that call.pdf
Complete the method count which should be a wrapper method that call.pdfComplete the method count which should be a wrapper method that call.pdf
Complete the method count which should be a wrapper method that call.pdfsels6
 
calculate calculate calculate calculate 1. The jo.pdf
calculate calculate calculate calculate  1. The jo.pdfcalculate calculate calculate calculate  1. The jo.pdf
calculate calculate calculate calculate 1. The jo.pdfsels6
 
Compare la bomba de sodiopotasio con la prote�na en forma de barril.pdf
Compare la bomba de sodiopotasio con la prote�na en forma de barril.pdfCompare la bomba de sodiopotasio con la prote�na en forma de barril.pdf
Compare la bomba de sodiopotasio con la prote�na en forma de barril.pdfsels6
 
Companies U and L are identical in every respect except that U is un.pdf
Companies U and L are identical in every respect except that U is un.pdfCompanies U and L are identical in every respect except that U is un.pdf
Companies U and L are identical in every respect except that U is un.pdfsels6
 
Cadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdf
Cadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdfCadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdf
Cadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdfsels6
 
Comment about this post.Motivators to help employees at the workpl.pdf
Comment about this post.Motivators to help employees at the workpl.pdfComment about this post.Motivators to help employees at the workpl.pdf
Comment about this post.Motivators to help employees at the workpl.pdfsels6
 
Comment about this post.Some of the best motivators for employee.pdf
Comment about this post.Some of the best motivators for employee.pdfComment about this post.Some of the best motivators for employee.pdf
Comment about this post.Some of the best motivators for employee.pdfsels6
 
Co-evolutionary troubles at the Renault Nissan alliance Widely hai.pdf
Co-evolutionary troubles at the Renault Nissan alliance Widely hai.pdfCo-evolutionary troubles at the Renault Nissan alliance Widely hai.pdf
Co-evolutionary troubles at the Renault Nissan alliance Widely hai.pdfsels6
 
Clasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdf
Clasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdfClasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdf
Clasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdfsels6
 
C2-1 (State of California�Fund Identification) The following list in.pdf
C2-1 (State of California�Fund Identification) The following list in.pdfC2-1 (State of California�Fund Identification) The following list in.pdf
C2-1 (State of California�Fund Identification) The following list in.pdfsels6
 
Clara est� demandando a David por una disputa de propiedad. Clara y .pdf
Clara est� demandando a David por una disputa de propiedad. Clara y .pdfClara est� demandando a David por una disputa de propiedad. Clara y .pdf
Clara est� demandando a David por una disputa de propiedad. Clara y .pdfsels6
 
Childhood participation in sports, cultural groups, and youth groups.pdf
Childhood participation in sports, cultural groups, and youth groups.pdfChildhood participation in sports, cultural groups, and youth groups.pdf
Childhood participation in sports, cultural groups, and youth groups.pdfsels6
 
Chapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdf
Chapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdfChapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdf
Chapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdfsels6
 
Chapter 7 Problems7.1 Match each term with its definition.1. .pdf
Chapter 7 Problems7.1 Match each term with its definition.1. .pdfChapter 7 Problems7.1 Match each term with its definition.1. .pdf
Chapter 7 Problems7.1 Match each term with its definition.1. .pdfsels6
 
Changes in Current Operating Assets and Liabilities Covington Corpor.pdf
Changes in Current Operating Assets and Liabilities Covington Corpor.pdfChanges in Current Operating Assets and Liabilities Covington Corpor.pdf
Changes in Current Operating Assets and Liabilities Covington Corpor.pdfsels6
 
Chapter 13 Case StudyUsing the information that follows for Cedar .pdf
Chapter 13 Case StudyUsing the information that follows for Cedar .pdfChapter 13 Case StudyUsing the information that follows for Cedar .pdf
Chapter 13 Case StudyUsing the information that follows for Cedar .pdfsels6
 
CGV MCQ 1. The objectives of good corporate governance by adhering t.pdf
CGV MCQ 1. The objectives of good corporate governance by adhering t.pdfCGV MCQ 1. The objectives of good corporate governance by adhering t.pdf
CGV MCQ 1. The objectives of good corporate governance by adhering t.pdfsels6
 
CCM A hypothetical company called Infrastructure4Sure provides In.pdf
CCM A hypothetical company called Infrastructure4Sure provides In.pdfCCM A hypothetical company called Infrastructure4Sure provides In.pdf
CCM A hypothetical company called Infrastructure4Sure provides In.pdfsels6
 
Caterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdf
Caterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdfCaterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdf
Caterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdfsels6
 

More from sels6 (20)

CalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdf
CalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdfCalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdf
CalculateCurrent RatioQuick RatioAccounts Receivable Turnover.pdf
 
Complete the method count which should be a wrapper method that call.pdf
Complete the method count which should be a wrapper method that call.pdfComplete the method count which should be a wrapper method that call.pdf
Complete the method count which should be a wrapper method that call.pdf
 
calculate calculate calculate calculate 1. The jo.pdf
calculate calculate calculate calculate  1. The jo.pdfcalculate calculate calculate calculate  1. The jo.pdf
calculate calculate calculate calculate 1. The jo.pdf
 
Compare la bomba de sodiopotasio con la prote�na en forma de barril.pdf
Compare la bomba de sodiopotasio con la prote�na en forma de barril.pdfCompare la bomba de sodiopotasio con la prote�na en forma de barril.pdf
Compare la bomba de sodiopotasio con la prote�na en forma de barril.pdf
 
Companies U and L are identical in every respect except that U is un.pdf
Companies U and L are identical in every respect except that U is un.pdfCompanies U and L are identical in every respect except that U is un.pdf
Companies U and L are identical in every respect except that U is un.pdf
 
Cadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdf
Cadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdfCadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdf
Cadena de valor y clasificaci�n de costes, empresa inform�tica. Dell.pdf
 
Comment about this post.Motivators to help employees at the workpl.pdf
Comment about this post.Motivators to help employees at the workpl.pdfComment about this post.Motivators to help employees at the workpl.pdf
Comment about this post.Motivators to help employees at the workpl.pdf
 
Comment about this post.Some of the best motivators for employee.pdf
Comment about this post.Some of the best motivators for employee.pdfComment about this post.Some of the best motivators for employee.pdf
Comment about this post.Some of the best motivators for employee.pdf
 
Co-evolutionary troubles at the Renault Nissan alliance Widely hai.pdf
Co-evolutionary troubles at the Renault Nissan alliance Widely hai.pdfCo-evolutionary troubles at the Renault Nissan alliance Widely hai.pdf
Co-evolutionary troubles at the Renault Nissan alliance Widely hai.pdf
 
Clasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdf
Clasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdfClasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdf
Clasifique los siguientes rasgos como espec�ficos de c�lulas o virus.pdf
 
C2-1 (State of California�Fund Identification) The following list in.pdf
C2-1 (State of California�Fund Identification) The following list in.pdfC2-1 (State of California�Fund Identification) The following list in.pdf
C2-1 (State of California�Fund Identification) The following list in.pdf
 
Clara est� demandando a David por una disputa de propiedad. Clara y .pdf
Clara est� demandando a David por una disputa de propiedad. Clara y .pdfClara est� demandando a David por una disputa de propiedad. Clara y .pdf
Clara est� demandando a David por una disputa de propiedad. Clara y .pdf
 
Childhood participation in sports, cultural groups, and youth groups.pdf
Childhood participation in sports, cultural groups, and youth groups.pdfChildhood participation in sports, cultural groups, and youth groups.pdf
Childhood participation in sports, cultural groups, and youth groups.pdf
 
Chapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdf
Chapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdfChapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdf
Chapter 24 AuditingQuestion 3 Amira Nadim, an auditor, has prepar.pdf
 
Chapter 7 Problems7.1 Match each term with its definition.1. .pdf
Chapter 7 Problems7.1 Match each term with its definition.1. .pdfChapter 7 Problems7.1 Match each term with its definition.1. .pdf
Chapter 7 Problems7.1 Match each term with its definition.1. .pdf
 
Changes in Current Operating Assets and Liabilities Covington Corpor.pdf
Changes in Current Operating Assets and Liabilities Covington Corpor.pdfChanges in Current Operating Assets and Liabilities Covington Corpor.pdf
Changes in Current Operating Assets and Liabilities Covington Corpor.pdf
 
Chapter 13 Case StudyUsing the information that follows for Cedar .pdf
Chapter 13 Case StudyUsing the information that follows for Cedar .pdfChapter 13 Case StudyUsing the information that follows for Cedar .pdf
Chapter 13 Case StudyUsing the information that follows for Cedar .pdf
 
CGV MCQ 1. The objectives of good corporate governance by adhering t.pdf
CGV MCQ 1. The objectives of good corporate governance by adhering t.pdfCGV MCQ 1. The objectives of good corporate governance by adhering t.pdf
CGV MCQ 1. The objectives of good corporate governance by adhering t.pdf
 
CCM A hypothetical company called Infrastructure4Sure provides In.pdf
CCM A hypothetical company called Infrastructure4Sure provides In.pdfCCM A hypothetical company called Infrastructure4Sure provides In.pdf
CCM A hypothetical company called Infrastructure4Sure provides In.pdf
 
Caterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdf
Caterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdfCaterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdf
Caterpillar Inc. sufri� una ca�da significativa en las ganancias lue.pdf
 

Recently uploaded

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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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 GraphThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Recently uploaded (20)

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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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"
 
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
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

C++ For each of the following groups of classes, describe or draw a .pdf

  • 1. C++ For each of the following groups of classes, describe or draw a diagram to indicate whether you would use direct inheritance, aggregation (containership), or multiple inheritance to combine them. (15 points) (a) class Building class House (b) class Birthday class Person (c) class Door class LockableDoor (d) class Vehicle and class Radio class Car (e) class Clock and class Radio class ClockRadio Explain in detail these uses of the const keyword (9 points) Distance AddDist( Distance d) const ; Distance AddDist ( const Distance &d ) ;