Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Dot
- {
- private:
- public:
- float x;
- float y;
- Dot(float X, float Y) : x(X), y(Y)
- {
- x = X;
- y =Y;
- }
- ~Dot()
- {
- cout << "Destructor called for Dot" << endl;
- }
- };
- int main(int argc, char** argv) {
- Dot a(2,3);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement