Many questions

Saaa empty at needmail.com
Sun May 3 18:43:56 PDT 2009


> interface I
> {
> void shine();
> }
>
> class C : I
> {
> final void shine() { }
> }
>
> void main()
> {
> C c = new C();
> I i = c;
I didn't know an interface could hold the data of an class or am I seeing 
this wrong?

>
> i.shine(); // Virtual
> c.shine(); // Direct
> }





More information about the Digitalmars-d mailing list