Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / Example_polymorphism / Rectangle.h
blob: ccdad8e041bd0e7798d3949f09352deb8345b20c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#pragma once
#include "Shape.h"

class Rectangle : public Shape
{
public:
	Rectangle(int x1, int y1, int x3, int y3);
	double getArea() const override;
	double getPer() const override;
};