Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class MyClass{
  2. MyClass();
  3. MyClass(int);
  4. MyClass(int, int);
  5. private:
  6. void foo();
  7. }
  8.  
  9. MyClass::MyClass(){
  10. foo(); //repetitive
  11. }
  12.  
  13. MyClass::MyClass(int a){
  14. foo(); //repetitive
  15. }
  16.  
  17. MyClass::MyClass(int a, int b){
  18. foo(); //repetitive
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement