I have a simple code of override methods of Polymorphism. The code is fine in 2010. But its getting error in 2012
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IntroductioToC
{
public class Employee
{
public string FirstName = "FN";
public string LastName = "LN";
public virtual void PrintFullName()
{
Console.WriteLine("{0} {1} ", FirstName, LastName);
}
public class PartTimeEmployee : Employee
{
public override void PrintFullName()
{
Console.WriteLine("{0} {1} -PartTimeEmployee", FirstName, LastName);
}
}
public class FullTimeEmployee : Employee
{
public override void PrintFullName()
{
Console.WriteLine( ...
Go to the complete details ...