view test/classes2.d @ 95:71b8fecdae38 trunk

[svn r99] Removed the ray demo. it's in test already (and not broken there)
author lindquist
date Mon, 12 Nov 2007 06:43:33 +0100
parents c53b6e3fe49a
children d9d5d59873d8
line wrap: on
line source

class A
{
    int i;
    void f()
    {
        printf("A.f\n");
    }
}

class B : A
{
    long l;
    void f()
    {
        printf("B.f\n");
    }
}

void main()
{
    A a = new B;
    a.f();
}