Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. using System;
  2.  
  3.     class A
  4.     {
  5.         public void ShowA()
  6.         {
  7.             Console.WriteLine("Class A");
  8.         }
  9.     }
  10.  
  11.     class B:A
  12.     {
  13.         public void ShowB()
  14.         {
  15.             Console.WriteLine("Class B");
  16.         }
  17.     }
  18.    
  19.     class Program
  20.     {
  21.         static void Main(string[] args)
  22.         {
  23.             A a = new A();
  24.             A b = new B();
  25.         }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement