Check out example codes for "csharp type sub class of". It will help you in understanding the concepts better.

Code Example 1

using System;

public class Class1 { }
public class DerivedC1 : Class1 { }

class IsSubclassTest
   public static void Main()
      Console.WriteLine("DerivedC1 subclass of Class1: {0}",
// The example displays the following output:
//        DerivedC1 subclass of Class1: True

Learn ReactJs, React Native from