Can anyone tell me how to case a base class into a derived class like in the example below. Here I am receiving an exception when the person object is cast as an employee.
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.