/*
P256.cpp
*/
#include <iostream>
using std::endl;
using std::cout;
class AAA
{
public :
AAA()
{
cout<<"AAA() call!"<<endl;
}
~AAA()
{
cout<<"~AAA() call!"<<endl;
}
};
class BBB : public AAA
{
public :
BBB()
{
cout<<"BBB() call!"<<endl;
}
~BBB()
{
cout<<"~BBB() call!"<<endl;
}
};
int main(void)
{
BBB bbb;
return 0;
}
반응형
'C, C++, Java' 카테고리의 다른 글
EmployeeManager3.cpp (0) | 2014.05.02 |
---|---|
Person.cpp (0) | 2014.04.30 |
Student.cpp (0) | 2014.04.30 |
C++ 초보자를 위한 좋은 사이트 (0) | 2013.06.25 |
출퇴근 하면서 짬짬이 취미로 볼려고 열혈강의 C책을 다시 펴봤다. (0) | 2013.01.13 |