arsovski

SmartTV.cpp

May 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. #include"SmartTV.h"
  2. SmartTV::SmartTV():TV(nullptr,-1,-1),
  3.                    SmartDevice(-1,-1,-1),
  4.                    OSVersion(-1)
  5. {
  6. }
  7. SmartTV::SmartTV(const char* _Name, int _Width, int _Height,
  8.     int _RAM, int _speed, int _cores, int _OSVersion) :
  9.     TV(_Name, _Width, _Height),
  10.     SmartDevice(_RAM, _speed, _cores),
  11.     OSVersion(_OSVersion)
  12. {
  13.    
  14. }
  15. SmartTV::SmartTV(const SmartTV& smarty):
  16.     TV(smarty.Name,smarty.Width,smarty.Height),
  17.     SmartDevice(smarty.RAM,smarty.speed,smarty.cores),
  18.         OSVersion(smarty.OSVersion)
  19. {
  20.    
  21. }
  22. void SmartTV::printSmartTV()
  23. {
  24.     std::cout << "OS Version : " << OSVersion << std::endl;
  25.     printTV();
  26.     printDevice();
  27. }
  28. SmartTV::~SmartTV()
  29. {
  30.    
  31. }
  32. void SmartTV::connectTO(const SmartTV &l)
  33. {
  34.     std::cout << "Name : " << l.Name << std::endl;
  35. }
Add Comment
Please, Sign In to add comment