a7_m2 - Nat Sci Lab CS II Module II Course 320112 Jacobs...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Nat Sci Lab CS II, Module II Course: 320112 Jacobs University Bremen April 10th, 2008 Dr. Heinrich Stamerjohanns . Assignment 7 - Polymorphism, Abstract classes This assignment must be solved in C++. Your programs should include proper declarations for all the variables needed. Insert suitable comments to explain what your program does. Also pay attention to proper indentation of your code. The TAs are supposed to take points off, if the code is not properly indented. Problem 7.1 Polymorphism (3 points) • Download the files from http://cantaloupe.eecs.jacobs-university.de/courses/320112/cpp/assignment7.zip. • Draw (ASCII Art) how the classes relate to each other and put this into testvirtual.cpp . • For each numbered point in the file testvirtual.cpp add a detailed comment about what is going on in the program. • As in circle.cpp , output something to screen when the method calcArea() is being called in any other class....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online