Advertisement
anthonimes

TP3 --- Héritage

Nov 27th, 2020 (edited)
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #ifndef TERRAIN_HPP
  2. #define TERRAIN_HPP
  3.  
  4. #include <iostream>
  5. #include <string>
  6.  
  7. class Terrain {
  8.  
  9.     private:
  10.         int longueur;
  11.         int largeur;
  12.         std::string terrain;
  13.  
  14.     public:
  15.         Terrain();
  16.         Terrain(int _longueur, int _largeur);
  17.         virtual ~Terrain();
  18.  
  19.         /* A compléter */
  20.         virtual void build_terrain(char pelouse);
  21.         std::string get_terrain();
  22.  
  23. };
  24.  
  25. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement