I have a base class named as MyBaseClass and derived class as MyInheritedClass whihc inherits from MyBaseclass in C#.net
In Form1.cs I am clreating an instance of both base and derived as below.
MyInheritedClass MyInherited = new MyInheritedClass() ;
MyBaseClass MyBase ;
what am I doing here by the below syntax..
MyBase = MyInherited;
I understand that using an instance of inherited class I can acccess the members of both base and dervied class.
But I want to know what can I do using the instance MyBase declared above and assigned to MyInherited (a derived class instance)..
Please let me know if I am not clear.