-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSSD.h
More file actions
29 lines (23 loc) · 668 Bytes
/
SSD.h
File metadata and controls
29 lines (23 loc) · 668 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 SSD_H
#define SSD_H
#include "Product.h"
using namespace std;
// Derived class from Product
class SSD : public Product {
private:
int capacity; // in GB
int readSpeed; // in MB/s
int writeSpeed; // in MB/s
string formFactor;
public:
SSD(string name, double price, int stock, string desc, int cap, int read, int write, string form);
// Override pure virtual function
void displayDetails() const override;
// Getters
int getCapacity() const;
int getReadSpeed() const;
int getWriteSpeed() const;
string getFormFactor() const;
};
#endif