oop tutorials
Saaa
empty at needmail.com
Tue Mar 4 08:38:31 PST 2008
> Could anybody give a simple example of unallocated class reference use?
> I think that would explain it all to me :)
Class className; // This will create a reference
className=new Class(); // This will allocate an instance of Class
Why do I need to name the class twice?
Is there a shortcut?
And, could I do:
Class className;
className=new Class_2();
I know some of my questions might be interpreted as being rhetorical, when
they really aren't.
I am that unknowing :)
More information about the Digitalmars-d-learn
mailing list