consolidate all repos to one for archive
This commit is contained in:
18
semester_2/programiranje_2/primeri/Example07/Point.h
Normal file
18
semester_2/programiranje_2/primeri/Example07/Point.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef EXAMPLE07_POINT_H
|
||||
#define EXAMPLE07_POINT_H
|
||||
|
||||
class Point {
|
||||
private:
|
||||
//protected:
|
||||
int x, y;
|
||||
public:
|
||||
Point();
|
||||
Point (int x1, int y1);
|
||||
|
||||
int getX() const;
|
||||
int getY() const;
|
||||
void print() const;
|
||||
double distance(const Point& p) const;
|
||||
};
|
||||
|
||||
#endif //EXAMPLE07_POINT_H
|
||||
Reference in New Issue
Block a user