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