Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // More C++ Tutorial at BrandonHok.com
- #include <iostream>
- // This can be done in cpp.sh
- class FireFuse
- {
- public:
- // Start with a default constructor
- FireFuse(int sec = 10);
- ~FireFuse();
- };
- FireFuse::FireFuse(int sec)
- {
- std::cout << "FireFuse()\n";
- }
- FireFuse::~FireFuse()
- {
- std::cout << "~FireFuse()\n";
- }
- int main()
- {
- FireFuse timer;
- FireFuse array[10];
- array[1] = timer;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement