consolidate all repos to one for archive
This commit is contained in:
21
semester_2/programiranje_2/primeri/Example11/Room.h
Normal file
21
semester_2/programiranje_2/primeri/Example11/Room.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef EXAMPLE11_ROOM_H
|
||||
#define EXAMPLE11_ROOM_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class Room {
|
||||
private:
|
||||
std::string name;
|
||||
public:
|
||||
Room(std::string name) : name(name) {
|
||||
std::cout << "Room::constructor" << std::endl;
|
||||
}
|
||||
virtual ~Room() {
|
||||
std::cout << "Room::destructor" << std::endl;
|
||||
}
|
||||
virtual void print() const {
|
||||
std::cout << "Room " << name << std::endl;
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EXAMPLE11_ROOM_H
|
||||
Reference in New Issue
Block a user