SlideShare a Scribd company logo
Using C++, create a simple program that demonstrates the implementation of polymorphism
though an abstract class and a virtual function. The program should:
- Show the implementation of at least one abstract class and one virtual function
- Show how polymorphism is achieved through the implementation of at least one abstract class
and one virtual function
- Document the code through the descriptive naming
- Explain the logic of the application through comments

More Related Content

More from amanbag

What is Property Management System (PMS) Choose Opera PMS and bring.pdf
What is Property Management System (PMS) Choose Opera PMS and bring.pdfWhat is Property Management System (PMS) Choose Opera PMS and bring.pdf
What is Property Management System (PMS) Choose Opera PMS and bring.pdf
amanbag
 
What is the correct definition of the term �relative price� 1.The r.pdf
What is the correct definition of the term �relative price� 1.The r.pdfWhat is the correct definition of the term �relative price� 1.The r.pdf
What is the correct definition of the term �relative price� 1.The r.pdf
amanbag
 
What is meant by demonstrating capability Question 17 options 1) G.pdf
What is meant by demonstrating capability Question 17 options 1) G.pdfWhat is meant by demonstrating capability Question 17 options 1) G.pdf
What is meant by demonstrating capability Question 17 options 1) G.pdf
amanbag
 
What is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdf
What is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdfWhat is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdf
What is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdf
amanbag
 
What is climate change Why do scientists believe that this is a hum.pdf
What is climate change Why do scientists believe that this is a hum.pdfWhat is climate change Why do scientists believe that this is a hum.pdf
What is climate change Why do scientists believe that this is a hum.pdf
amanbag
 
What Is Basic Text Functions In Python What was most rewarding fo.pdf
What Is Basic Text Functions In Python   What was most rewarding fo.pdfWhat Is Basic Text Functions In Python   What was most rewarding fo.pdf
What Is Basic Text Functions In Python What was most rewarding fo.pdf
amanbag
 
What is a major benefit of using prototypes that solve a core custom.pdf
What is a major benefit of using prototypes that solve a core custom.pdfWhat is a major benefit of using prototypes that solve a core custom.pdf
What is a major benefit of using prototypes that solve a core custom.pdf
amanbag
 
What is data integrity What are the sources of data in healthcare .pdf
What is data integrity What are the sources of data in healthcare .pdfWhat is data integrity What are the sources of data in healthcare .pdf
What is data integrity What are the sources of data in healthcare .pdf
amanbag
 
What is a difference between skeletal and cardiac muscleA. Each m.pdf
What is a difference between skeletal and cardiac muscleA. Each m.pdfWhat is a difference between skeletal and cardiac muscleA. Each m.pdf
What is a difference between skeletal and cardiac muscleA. Each m.pdf
amanbag
 
Use this information to answer questions 19-20Full-blown sickle c.pdf
Use this information to answer questions 19-20Full-blown sickle c.pdfUse this information to answer questions 19-20Full-blown sickle c.pdf
Use this information to answer questions 19-20Full-blown sickle c.pdf
amanbag
 
What does the First Law of Thermodynamics state Question 2 options.pdf
What does the First Law of Thermodynamics state Question 2 options.pdfWhat does the First Law of Thermodynamics state Question 2 options.pdf
What does the First Law of Thermodynamics state Question 2 options.pdf
amanbag
 
What is a financing costA. Any interest or dividends included as .pdf
What is a financing costA. Any interest or dividends included as .pdfWhat is a financing costA. Any interest or dividends included as .pdf
What is a financing costA. Any interest or dividends included as .pdf
amanbag
 
What does p0.01 mean The probability that the alternative hypoth.pdf
What does p0.01 mean The probability that the alternative hypoth.pdfWhat does p0.01 mean The probability that the alternative hypoth.pdf
What does p0.01 mean The probability that the alternative hypoth.pdf
amanbag
 
What does community nursing mean to you What does it look like to w.pdf
What does community nursing mean to you What does it look like to w.pdfWhat does community nursing mean to you What does it look like to w.pdf
What does community nursing mean to you What does it look like to w.pdf
amanbag
 
What do you think Moral Obligation means in terms of honoring a Cont.pdf
What do you think Moral Obligation means in terms of honoring a Cont.pdfWhat do you think Moral Obligation means in terms of honoring a Cont.pdf
What do you think Moral Obligation means in terms of honoring a Cont.pdf
amanbag
 
Week 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdf
Week 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdfWeek 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdf
Week 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdf
amanbag
 
We have got the following RE at the end of this class by reducing a .pdf
We have got the following RE at the end of this class by reducing a .pdfWe have got the following RE at the end of this class by reducing a .pdf
We have got the following RE at the end of this class by reducing a .pdf
amanbag
 
Virginia would be classified as a dependent, being 82 rules her out .pdf
Virginia would be classified as a dependent, being 82 rules her out .pdfVirginia would be classified as a dependent, being 82 rules her out .pdf
Virginia would be classified as a dependent, being 82 rules her out .pdf
amanbag
 
What can provide consumers with personalized access to web infor.pdf
What can provide consumers with personalized access to web infor.pdfWhat can provide consumers with personalized access to web infor.pdf
What can provide consumers with personalized access to web infor.pdf
amanbag
 
What are the various types of inventoriesExplain the ABC classifi.pdf
What are the various types of inventoriesExplain the ABC classifi.pdfWhat are the various types of inventoriesExplain the ABC classifi.pdf
What are the various types of inventoriesExplain the ABC classifi.pdf
amanbag
 

More from amanbag (20)

What is Property Management System (PMS) Choose Opera PMS and bring.pdf
What is Property Management System (PMS) Choose Opera PMS and bring.pdfWhat is Property Management System (PMS) Choose Opera PMS and bring.pdf
What is Property Management System (PMS) Choose Opera PMS and bring.pdf
 
What is the correct definition of the term �relative price� 1.The r.pdf
What is the correct definition of the term �relative price� 1.The r.pdfWhat is the correct definition of the term �relative price� 1.The r.pdf
What is the correct definition of the term �relative price� 1.The r.pdf
 
What is meant by demonstrating capability Question 17 options 1) G.pdf
What is meant by demonstrating capability Question 17 options 1) G.pdfWhat is meant by demonstrating capability Question 17 options 1) G.pdf
What is meant by demonstrating capability Question 17 options 1) G.pdf
 
What is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdf
What is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdfWhat is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdf
What is left in the process Terrestrial Inorganic Carbon Cycle Atmo.pdf
 
What is climate change Why do scientists believe that this is a hum.pdf
What is climate change Why do scientists believe that this is a hum.pdfWhat is climate change Why do scientists believe that this is a hum.pdf
What is climate change Why do scientists believe that this is a hum.pdf
 
What Is Basic Text Functions In Python What was most rewarding fo.pdf
What Is Basic Text Functions In Python   What was most rewarding fo.pdfWhat Is Basic Text Functions In Python   What was most rewarding fo.pdf
What Is Basic Text Functions In Python What was most rewarding fo.pdf
 
What is a major benefit of using prototypes that solve a core custom.pdf
What is a major benefit of using prototypes that solve a core custom.pdfWhat is a major benefit of using prototypes that solve a core custom.pdf
What is a major benefit of using prototypes that solve a core custom.pdf
 
What is data integrity What are the sources of data in healthcare .pdf
What is data integrity What are the sources of data in healthcare .pdfWhat is data integrity What are the sources of data in healthcare .pdf
What is data integrity What are the sources of data in healthcare .pdf
 
What is a difference between skeletal and cardiac muscleA. Each m.pdf
What is a difference between skeletal and cardiac muscleA. Each m.pdfWhat is a difference between skeletal and cardiac muscleA. Each m.pdf
What is a difference between skeletal and cardiac muscleA. Each m.pdf
 
Use this information to answer questions 19-20Full-blown sickle c.pdf
Use this information to answer questions 19-20Full-blown sickle c.pdfUse this information to answer questions 19-20Full-blown sickle c.pdf
Use this information to answer questions 19-20Full-blown sickle c.pdf
 
What does the First Law of Thermodynamics state Question 2 options.pdf
What does the First Law of Thermodynamics state Question 2 options.pdfWhat does the First Law of Thermodynamics state Question 2 options.pdf
What does the First Law of Thermodynamics state Question 2 options.pdf
 
What is a financing costA. Any interest or dividends included as .pdf
What is a financing costA. Any interest or dividends included as .pdfWhat is a financing costA. Any interest or dividends included as .pdf
What is a financing costA. Any interest or dividends included as .pdf
 
What does p0.01 mean The probability that the alternative hypoth.pdf
What does p0.01 mean The probability that the alternative hypoth.pdfWhat does p0.01 mean The probability that the alternative hypoth.pdf
What does p0.01 mean The probability that the alternative hypoth.pdf
 
What does community nursing mean to you What does it look like to w.pdf
What does community nursing mean to you What does it look like to w.pdfWhat does community nursing mean to you What does it look like to w.pdf
What does community nursing mean to you What does it look like to w.pdf
 
What do you think Moral Obligation means in terms of honoring a Cont.pdf
What do you think Moral Obligation means in terms of honoring a Cont.pdfWhat do you think Moral Obligation means in terms of honoring a Cont.pdf
What do you think Moral Obligation means in terms of honoring a Cont.pdf
 
Week 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdf
Week 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdfWeek 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdf
Week 10 - Reflex DiscussionPick a reflexDescribe what happens d.pdf
 
We have got the following RE at the end of this class by reducing a .pdf
We have got the following RE at the end of this class by reducing a .pdfWe have got the following RE at the end of this class by reducing a .pdf
We have got the following RE at the end of this class by reducing a .pdf
 
Virginia would be classified as a dependent, being 82 rules her out .pdf
Virginia would be classified as a dependent, being 82 rules her out .pdfVirginia would be classified as a dependent, being 82 rules her out .pdf
Virginia would be classified as a dependent, being 82 rules her out .pdf
 
What can provide consumers with personalized access to web infor.pdf
What can provide consumers with personalized access to web infor.pdfWhat can provide consumers with personalized access to web infor.pdf
What can provide consumers with personalized access to web infor.pdf
 
What are the various types of inventoriesExplain the ABC classifi.pdf
What are the various types of inventoriesExplain the ABC classifi.pdfWhat are the various types of inventoriesExplain the ABC classifi.pdf
What are the various types of inventoriesExplain the ABC classifi.pdf
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

Using C++, create a simple program that demonstrates the implementat.pdf

  • 1. Using C++, create a simple program that demonstrates the implementation of polymorphism though an abstract class and a virtual function. The program should: - Show the implementation of at least one abstract class and one virtual function - Show how polymorphism is achieved through the implementation of at least one abstract class and one virtual function - Document the code through the descriptive naming - Explain the logic of the application through comments