谷哥

努力读书不如论坛看贴

博客园 首页 新随笔 联系 订阅 管理
  24 Posts :: 0 Stories :: 27 Comments :: 1 Trackbacks

我的评论


我见文章写的太长了就不想看。拜托兄弟你下次写短点吧。满足一下我这种懒人需求!

复杂问题简单化 -- 贡献!
re: 【原】有线通设定 ktgu 2008-05-19 10:32  
晕,这哪是有线通设置~~~!
re: CSS hack ktgu 2008-03-28 11:22  
@BoyLee

无他,唯手熟尔!--《卖油翁》
两小样,缘份哪!!!
hard!
re: [原] 一道.net编程题 ktgu 2007-05-21 13:01  

乱写的,还请高人指教
 
/// <summary>
/// 银行客户类
/// </summary>

public class BankCustomer : Customer, IBankCustomer
{
    
public BankCustomer() : base() { }

    
public BankCustomer(int customerId, string customerName, Account accountInfo)
        : 
base()
    
{
        
this._customerId = customerId;
        
this._customerName = customerName;
        
this._accountInfo = accountInfo;
    }
 

    
/// <summary>
    
/// 读取客户及帐户相关信息
    
/// </summary>

    public override void Load()
    
{
        
throw new Exception("The method or operation is not implemented.");
    }


    
/// <summary>
    
/// 新开户
    
/// </summary>

    public override bool Insert()
    
{
        
throw new Exception("The method or operation is not implemented.");
    }


    
/// <summary>
    
/// 更新客户信息
    
/// </summary>

    public override bool Update()
    
{
        
throw new Exception("The method or operation is not implemented.");
    }


    
/// <summary>
    
/// 删除
    
/// </summary>

    public override bool Delete(string customerId)
    
{
        
throw new Exception("The method or operation is not implemented.");
    }


    
IBankCustomer 成员
}


/// <summary>
/// 银行帐户类
/// </summary>

public class Account
{
    
private string _accountNo = string.Empty;
    
private float _balance = 0;

    
public Account()
    
{
        
//在此处添加逻辑
    }


    
public Account(string accountNo, float balance)
    
{
        
this._accountNo = accountNo;
        
this._balance = balance;
    }


    
/// <summary>
    
/// 帐号
    
/// </summary>

    public string AccountNo
    
{
        
get return this._accountNo; }
        
set this._accountNo = value; }
    }


    
/// <summary>
    
/// 余额
    
/// </summary>

    public float Balance
    
{
        
get return this._balance; }
        
set this._balance = value; }
    }

}


/// <summary>
/// 客户类
/// </summary>

public abstract class Customer
{
    
protected string _customerId = string.Empty;
    
protected string _customerName = string.Empty;
    
protected Account _accountInfo = null;

    
public Customer()
    
{
        
//在此处添加代码
    }


    
public string CustomerId
    
{
        
get return this._customerId; }
        
set this._customerId = value; }
    }


    
public string CustomerName
    
{
        
get return this._customerName; }
        
set this._customerName = value; }
    }


    
public Account AccountInfo
    
{
        
get return this._accountInfo; }
        
set this._accountInfo = value; }
    }


    
public abstract bool Insert();

    
public abstract bool Update();

    
public abstract bool Delete(string customerId);

    
public abstract void Load();

}


public interface IBankCustomer
{
    
bool Add(float money);
    
bool Take(float money);
}

 
 

 

面试的时候看看不错的
blog: ktgu
MSN: gkt1980@yahoo.com.cn
Email:gkt1980@yahoo.com.cn
QQ:29283212
Asp.net 组件开发.WebService应用. P2P的开发,企业架构.