Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Point3D
- {
- int x, y, z;
- void print()
- {
- cout << "X: " << x << " Y: " << y << " Z: " << z << endl;
- }
- };
- class Point2D
- {
- int x, y;
- void print()
- {
- cout << "X: " << x << " Y: " << y << endl;
- }
- };
- int main()
- {
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement