Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include"SmartTV.h"
- SmartTV::SmartTV():TV(nullptr,-1,-1),
- SmartDevice(-1,-1,-1),
- OSVersion(-1)
- {
- }
- SmartTV::SmartTV(const char* _Name, int _Width, int _Height,
- int _RAM, int _speed, int _cores, int _OSVersion) :
- TV(_Name, _Width, _Height),
- SmartDevice(_RAM, _speed, _cores),
- OSVersion(_OSVersion)
- {
- }
- SmartTV::SmartTV(const SmartTV& smarty):
- TV(smarty.Name,smarty.Width,smarty.Height),
- SmartDevice(smarty.RAM,smarty.speed,smarty.cores),
- OSVersion(smarty.OSVersion)
- {
- }
- void SmartTV::printSmartTV()
- {
- std::cout << "OS Version : " << OSVersion << std::endl;
- printTV();
- printDevice();
- }
- SmartTV::~SmartTV()
- {
- }
- void SmartTV::connectTO(const SmartTV &l)
- {
- std::cout << "Name : " << l.Name << std::endl;
- }
Add Comment
Please, Sign In to add comment