28.04.2017 Views

DEVRY COMP 220 iLab 7 Polymorphism Lab

devry comp 220 ilab 7 polymorphism lab report and source code,devry comp 220,comp 220,devry comp 220 week 7 tutorial,comp 220 week 7 assignment,devry comp 220 week 7 help

devry comp 220 ilab 7 polymorphism lab report and source code,devry comp 220,comp 220,devry comp 220 week 7 tutorial,comp 220 week 7 assignment,devry comp 220 week 7 help

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DEVRY</strong> <strong>COMP</strong> <strong>220</strong> <strong>i<strong>Lab</strong></strong> 7 <strong>Polymorphism</strong> <strong>Lab</strong><br />

Report and Source Code<br />

Check this A+ tutorial guideline at<br />

http://www.comp<strong>220</strong>entirecourse.com/c<br />

omp-<strong>220</strong>/comp-<strong>220</strong>-ilab-7-<br />

polymorphism-lab-report-and-sourcecode<br />

For more classes visit<br />

http://www.comp<strong>220</strong>entirecourse.<br />

com<br />

Assignment: <strong>Lab</strong> 7 <strong>Polymorphism</strong><br />

Description: This lab introduces students to the concepts of polymorphism, early<br />

binding, late binding, abstract classes, and virtual class functions. This will be done<br />

in the context of performing calculations on basic geometrical shapes. <strong>Polymorphism</strong><br />

is a very powerful extension of inheritance, and by using pointers to the base class, it<br />

allows access to derived class objects and their functions based on the context that<br />

they are called in.


The lab will require the creation of a base geometric class, called Shape, and two sub<br />

classes, Circle and Rectangle, that are derived public from the class Shape. From<br />

there, objects of both the Circle and the Rectangle classes will be created, as will an<br />

array of pointers to the base class Shape. By using the instantiated objects and the<br />

object pointers, both static and dynamic binding will be demonstrated.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!