COMP 220 Course / tutorialrank

COMP 220 Course / tutorialrank

COMP 220 iLab 7 Polymorphism Lab Report and Source Code

For more course tutorials visit

www.tutorialrank.com

Tutorial Purchased: 1Times, Rating: No rating

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 6 Overloaded Operators Lab Report and Source Code

For more course tutorials visit

www.tutorialrank.com

Tutorial Purchased: 2 Times, Rating: B+


Assignment: Lab 6 Overloaded Operators
Description: This lab is to introduce students to the concept of operator overloading as member functions of a class. This will be done in the context of creating a class that will perform four basic mathematical operations on complex numbers.
The C++ compiler has defined operators for all the arithmetic and assignment operations for its native data types, such as integer, float, double, and so forth. However, for user-defined data types, such as classes and structures, these operations are undefined.
C++ allows the...

Similar Essays