home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_03
/
1103107a
< prev
next >
Wrap
Text File
|
1993-01-08
|
335b
|
35 lines
#include <iostream.h>
class B
{
public:
void f();
void g();
};
void B::f() { cout << "B::f()\n"; }
void B::g() { cout << "B::g()\n"; }
class D : public B
{
public:
void g();
};
void D::g() { cout << "D::g()\n"; }
int main()
{
B b;
b.f();
b.g();
D d;
d.f();
d.g();
return 0;
}