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