-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonitor.h
More file actions
29 lines (23 loc) · 694 Bytes
/
Monitor.h
File metadata and controls
29 lines (23 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Tyeon Ford
#ifndef MONITOR_H
#define MONITOR_H
#include "Product.h"
using namespace std;
// Derived class from Product
class Monitor : public Product {
private:
int screenSize;// in inches
int refreshRate; // in Hz
string resolution;
string panelType;
public:
Monitor(string name, double price, int stock, string desc, int size, string res, int refresh, string panel);
// Override the normal virtual function
void displayDetails() const override;
// Getters
int getScreenSize() const;
string getResolution() const;
int getRefreshRate() const;
string getPanelType() const;
};
#endif