mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[CCV] Finished exercise 2
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
19
ccv/sheet1/Rectangle.h
Normal file
19
ccv/sheet1/Rectangle.h
Normal file
@ -0,0 +1,19 @@
|
||||
//
|
||||
// Created by jim on 4/4/17.
|
||||
//
|
||||
|
||||
#ifndef SHEET1_RECTANGLE_H
|
||||
#define SHEET1_RECTANGLE_H
|
||||
|
||||
class Rectangle
|
||||
{
|
||||
private:
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
|
||||
public:
|
||||
Rectangle(unsigned int, unsigned int);
|
||||
unsigned int area();
|
||||
};
|
||||
|
||||
#endif //SHEET1_RECTANGLE_H
|
||||
Reference in New Issue
Block a user