chore: Add course material
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "Employee.h"
|
||||
#include <iostream>
|
||||
|
||||
void Employee::doDisplay() { std::cout << ", $" << salary; }
|
||||
|
||||
void Employee::askForInfo() {
|
||||
Person::askForInfo();
|
||||
|
||||
std::cout << "Salary: ";
|
||||
std::cin >> salary;
|
||||
}
|
||||
Reference in New Issue
Block a user