COMP 220 DEVERY Course Material - comp220dotcom

COMP 220 DEVERY Course Material - comp220dotcom

COMP 220 iLab 7 Polymorphism Lab Report and Source Code (Devry)

For more course tutorials visit
www.comp220.com

Assignment: Lab 7 Polymorphism
Description: This lab introduces students to the concepts of polymorphism, early binding, late binding, abstract classes, and virtual class functions. This will be done in the context of performing calculations on basic geometrical shapes. Polymorphism is a very powerful extension of inheritance, and by using pointers to the base class, it allows access to derived class objects and their functions based on the context that they are called in.
The lab will require the creation of a base geometric class, called Shape, and two sub classes, Circle and Rectangle, that are derived public from the class Shape. From there, objects of both the Circle and the Rectangle classes will be created, as will an array of pointers to the base class Shape. By using the instantiated objects and the object pointers, both static and dynamic binding will be demonstrated.
................................................................................................................................................................

COMP 220 iLab 5 Lab Report and Source Code (Devry)

For more course tutorials visit
www.comp220.com

Assignment: Lab 5 Pointers and Pointer Operators
Description: This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.
Pointers are, essentially, address variables, or variables that hold as their value the address of other variables. In terms of memory management, they are very powerful devices, and they more closely and efficiently use the actual internal hardware registers of the microprocessor that the program operates on....

Similar Essays