C Sharp (C#) - Polymorphism and Abstract Classes
What is the output of this code?
object obj = 3.14;
if (obj is int n)
{
Console.WriteLine($"Integer: {n}");
}
else
{
Console.WriteLine("Not an integer");
}