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