a5_m2 - Nat Sci Lab CS II, Module II Jacobs University...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Nat Sci Lab CS II, Module II Course: 320112 Jacobs University Bremen April 3rd, 2008 Dr. Heinrich Stamerjohanns . Assignment 5 - Classes and their implementation 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 5.1 A Rectangle class (3 points) Download the files from http://cantaloupe.eecs.jacobs-university.de/courses/320112/cpp/assignment5.zip In the file you will find two files: figure.h and rectangle.h . The first one contains the declaration of the Figure class, while in the second one you will find the declaration of the class Rectangle , which inherits from Figure . You have to provide the implementation for the given Rectangle class. Please note that the file rectangle.h cannot be modified. A brief description of what methods and functions should do follows:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

a5_m2 - Nat Sci Lab CS II, Module II Jacobs University...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online