Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Base {
- public:
- Base() {
- cout << "Base class" << endl;
- }
- };
- class Derived : public Base{
- public:
- Derived() : Base() {
- cout << "Derived class" << endl;
- }
- };
- int main()
- {
- Derived d;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement