Re: Instance with Inheritance



On Jan 31, 7:50 am, mask...@xxxxxxxxx wrote:
Can We create the instance of class with Inheritance like following :

Derivedclassname var = new Baseclassname

If you mean something like:

string x = new object();

then no, you can't - because the created object is *not* a string.

Jon

.