hm

From Rock3r, 6 Years ago, written in C#, viewed 506 times. This paste will check out in 1 Second.
URL https://paste.godclan.hu/view/ERttb4gW 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.         public 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.         public 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.                 public LoggerService(Logger a){
  39.                        
  40.                 }
  41.                 public string Log(string l) {
  42.                                
  43.                 }
  44.                        
  45.                 public void Version(){
  46.                                
  47.                 }
  48.                
  49.         }
  50.        
  51.         class Program
  52.         {
  53.                 public static void Main(string[] args)
  54.                 {
  55.                         LoggerService ls = new LoggerService();
  56.                        
  57.                         Console.ReadKey();
  58.                 }
  59.         }
  60.        
  61. }

Reply to "hm"

Here you can reply to the paste above