using System;
public class 클래스
{
//Entry Point
public static void Main()
{
//Car 인스턴스 생성
Car car = new Car();
car.Run() ;
car.Color = "Red";
//Human 클래스 이용
Human h = new Human();
h.Name = "아우디";
h.Age = "12세";
h.show();
//Static 클래스 이용
StaticClass s = new StaticClass();
StaticClass.Name = "Kim Yong Won";
s.Age = 21;
}
}
-------------------------------------------------------------
using System;
public class 클래스
{
//Entry Point
public static void Main()
{
//Car 인스턴스 생성
Car car = new Car();
car.Run() ;
car.Color = "Red";
//Human 클래스 이용
Human h = new Human();
h.Name = "아우디";
h.Age = "12세";
h.show();
//Static 클래스 이용
StaticClass s = new StaticClass();
StaticClass.Name = "Kim Yong Won";
s.Age = 21;
}
}
'.Net Project > .Net 3.5 Sp1' 카테고리의 다른 글
50장 Conistructor(생성자) (0) | 2009.08.11 |
---|---|
49장 Class(Filed) (0) | 2009.08.11 |
47장 Locatioc(로케이션) (0) | 2009.08.10 |
46장 Document(문서) (0) | 2009.08.10 |
45장 Window(윈도우) (0) | 2009.08.10 |