in reply to Fun with Typed Objects 1

Can you, in C#, write something like Animal woofer = new Dog()? If so, then the typing of the variable and the name of the class being instantiated need to be separated.

Also, in C++, Dog skip doesn't do the same thing as Dog *skip = new Dog(). The first create an object and the second creates a pointer to an object. Very different beast, completely. So, you're kinda comparing apples and tires.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.