alma

From Rock3r, 6 Years ago, written in C#, viewed 477 times. This paste will run down the curtain in 1 Second.
URL https://paste.godclan.hu/view/cvHDyS-_ Shorturl <br /> <b>Warning</b>: mysqli::mysqli(): (HY000/2002): Connecti Embed
Download Paste or View Raw
  1. using System;
  2.  
  3. namespace a
  4. {
  5.        
  6.         public abstract class Logger {
  7.                 public abstract void Write (string s);
  8.                
  9.                
  10.                 public virtual string GetVersion() {
  11.                         return "LoggerBase 1.0";
  12.                 }
  13.         }
  14.        
  15.         abstract class NormalLogger : Logger {
  16.                 public override void Write( string s){
  17.                         Console.WriteLine(s);
  18.                 }
  19.                
  20.                 public override string GetVersion() {
  21.                         return "NormalLogger 1.0";
  22.                 }
  23.         }
  24.        
  25.         abstract class ColorLogger : Logger {
  26.                 public override void Write( string s){
  27.                         Console.WriteLine(s);
  28.                 }
  29.                
  30.                 public override string GetVersion() {
  31.                         Console.ForegroundColor = ConsoleColor.DarkBlue;
  32.                         return "ColoredLogger 1.0";
  33.                 }
  34.         }
  35.        
  36.         class LoggerService {
  37.                
  38.         }
  39.        
  40.         class Program
  41.         {
  42.                 public static void Main(string[] args)
  43.                 {
  44.                        
  45.                         Console.ReadKey();
  46.                 }
  47.         }
  48.        
  49. }

Reply to "alma"

Here you can reply to the paste above