Advertisement
spacerose

3.2.4.1

Mar 10th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. class Student {
  4. public:
  5.     Student() {
  6.         cout << "Constructor";
  7.     }
  8.  
  9.     ~Student() {
  10.         cout << endl << "Destructor";
  11.     }
  12.  
  13. };
  14. int main()
  15. {
  16.     Student std;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement