简单的this指针应用
class Program
{
public class Time
{
private int hour;
private int minute;
private int second;
public Time()
{
//以下3个this指针可以省略
this.hour = 0;
this.minute = 0;
this.second = 0;
}
public Time(int hour, int minute, int second)
{
//以下3个this指针不能省略
this.hour = hour;
this.minute = minute;
this.second = second;
}
public int Hour
{
get
{
return this.hour;
}
set
{
this.ho