A4L

Inheretece Chain

A4L
Apr 26th, 2020
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TextAdventure
  4. {
  5.  
  6.     class containerTextUtilities : Demo_ONE
  7.     {
  8.         public void TestBASE()
  9.         {
  10.             Console.WriteLine(": BASE :");
  11.         }
  12.     }
  13.  
  14.     class Demo_ONE : Demo_TWO
  15.     {
  16.         public void TestONE()
  17.         {
  18.             Console.WriteLine("     : TestONE :");
  19.         }
  20.     }
  21.  
  22.     class Demo_TWO
  23.     {
  24.         public void TestTWO()
  25.         {
  26.             Console.WriteLine("     : TestTWO :");
  27.         }
  28.     }
  29.  
  30.     class TextAdventure
  31.     {
  32.         static void Main(string[] args)
  33.         {
  34.             containerTextUtilities TextUtilities = new containerTextUtilities();
  35.  
  36.             TextUtilities.TestBASE();
  37.             TextUtilities.TestONE();
  38.             TextUtilities.TestTWO();
  39.  
  40.  
  41.             Console.ReadLine();
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment