Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 80cc624801
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (18 sloc) 0.259 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include <iostream>
using namespace std;

class A {
public:
A() {
cout << "Constructor in class A" << endl;
}
};

class B : A {
public:
B() {
cout << "Constructor in class B" << endl;
}
};

int main() {

B rahul;

return 0;
}
Something went wrong with that request. Please try again.