Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 11-Practice-10.05.2022 / Battery.h
blob: 9c309273ea34f3bc73bbe66e3d0a04586498a3cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "CarPart.h"
#include "String.h"
#include <istream>
#include <ostream>

class Battery : CarPart {
	unsigned short capacity;
	String batteryID;

public:
	Battery();
	Battery(unsigned short capacity, const char* batteryID);
};

std::ostream& operator<<(std::ostream& ostr, const Battery& bat);