You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
525 B
22 lines
525 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DerivedClass
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
AbstractClass d1 = new DerivedA();
|
|
DerivedA d2 = new DerivedA();
|
|
|
|
Console.WriteLine(d1 is AbstractClass);
|
|
Console.WriteLine(d2 is AbstractClass);
|
|
Console.WriteLine(d1 is DerivedA);
|
|
Console.WriteLine(d2 is DerivedA);
|
|
}
|
|
}
|
|
}
|
|
|