예제) 추상 메소드

 

 

 

 

 

using System;

abstract class SportsCar

{

  public abstract void FastRun();

}

class Boxter : SportsCar{}

class Program

{

  public static void Main()

  {

  Boxter a=new Boxter();

  a.FastRun();

  }

}

 

 

 

 

 

+ Recent posts