consolidate all repos to one for archive
This commit is contained in:
19
semester_2/programiranje_2/primeri/Example08/CPoint.cpp
Normal file
19
semester_2/programiranje_2/primeri/Example08/CPoint.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
#include "CPoint.h"
|
||||
|
||||
CPoint::CPoint() : Point(), color(0) {
|
||||
}
|
||||
|
||||
CPoint::CPoint(int x, int y, int c) : Point(x, y), color(c) {
|
||||
}
|
||||
|
||||
CPoint::~CPoint() {
|
||||
//std::cout << "Destructor CPoint" << std::endl;
|
||||
}
|
||||
|
||||
void CPoint::print() const {
|
||||
std::cout << "(" << x << ", " << y << ") color= " << color << std::endl;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user