제목 : 8.4.1. Week.cs
    
    
        
            
                | 글번호: |  | 323 | 
            
                | 작성자: |  | 레드플러스 | 
            
                | 작성일: |  | 2007/02/12 오후 2:25:00 | 
            
            
                | 조회수: |  | 7111 | 
            
        
     
 
    
	
	
    
	using System;
public class Week
{
    //필드
    private string[] _WeekDay;  
    //인덱서 구현
    public string this[int index]
    {
        get
        {
            return _WeekDay[index];
        }
        set
        {
            _WeekDay[index] = value;
        }
    }
    //읽기 전용 속성 : Length
    public int Length
    {
        get 
        {
            return _WeekDay.Length;
        }
    }
    //생성자
    public Week(int index)
    {
        this._WeekDay = new string[index];
    }
}
    
	
    
    
 
    
    
    
    
    
    
    
    
    
    
    
     
    
        