Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Point3D
  6. {
  7. int x, y, z;
  8. void print()
  9. {
  10. cout << "X: " << x << " Y: " << y << " Z: " << z << endl;
  11.  
  12. }
  13.  
  14.  
  15. };
  16.  
  17. class Point2D
  18. {
  19. int x, y;
  20. void print()
  21. {
  22. cout << "X: " << x << " Y: " << y << endl;
  23. }
  24.  
  25.  
  26.  
  27. };
  28. int main()
  29. {
  30.  
  31.  
  32.  
  33. system("PAUSE");
  34. return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement