Advertisement
cor3ntin

Untitled

Jan 8th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. // Bad design
  3.  
  4. class T
  5. {
  6. public:
  7. T (); // Constructeur par défaut
  8. T (const T&); // Constructeur de recopie
  9. ~T (); // Destructeur éventuellement virtuel
  10. T &operator=(const T&); // Operator d'affectation
  11. };
  12.  
  13.  
  14. // Good design
  15.  
  16. class T
  17. {
  18. public:
  19. T ();
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement