Advertisement
SSS_Krut

Class

Sep 19th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. class Car{
  2. public:
  3. int health;
  4.  Car(int HP){
  5.   health = HP; // и тд
  6.  }
  7.  void HPmines(int hp){
  8.   health -= hp;
  9.  }
  10. }
  11. class car_a :public Car{
  12. public://и тд
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement