小禾斗 发表于2020-06-29 16:46
前面加上显式接口名
interface Information
{
string Code { set; get; }
string Name { set; get; }
void ShowInfo();
}
interface Information2
{
string Code { set; get; }
string Name { set; get; }
void ShowInfo();
}
public class Jhinfo:Information,Information2
{
string code="";
string name = "";
string Information.Code
{
get
{
return code;
}
set
{
code = value;
}
}
string Information.Name
{
get
{
return name;
}
set
{
name = value;
}
}
void Information.ShowInfo()
{
Console.WriteLine(Information.Code + Information.Code);
}
public void inf()
{
Console.WriteLine("ok");
}
}
感觉依然不对
interface Information
{
string Code { get; set; }
string Name { get; set; }
void ShowInfo();
}
interface Information2
{
string Code { get; set; }
string Name { get; set; }
void ShowInfo();
}
public class Jhinfo : Information, Information2
{
string Information.Code { get; set; }
string Information2.Code { get; set; }
string Information.Name { get; set; }
string Information2.Name { get; set; }
void Information.ShowInfo()
{
Information i = new Jhinfo();
Console.WriteLine(i.Code+i.Name);
}
void Information2.ShowInfo()
{
}
}
21 六月 2025 | ||||||
---|---|---|---|---|---|---|
8:008:058:108:158:208:258:308:358:408:458:508:55 | ||||||
今日 |
21 六月 2025 | ||||||
---|---|---|---|---|---|---|
0:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:00 | ||||||
今日 |
六月 2025 | ||||||
---|---|---|---|---|---|---|
日 | 一 | 二 | 三 | 四 | 五 | 六 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |
今日 |
2025 | ||||||
---|---|---|---|---|---|---|
一月二月三月四月五月六月七月八月九月十月十一月十二月 | ||||||
今日 |
2020-2029 | ||||||
---|---|---|---|---|---|---|
201920202021202220232024202520262027202820292030 | ||||||
今日 |
21 六月 2025 | ||||||
---|---|---|---|---|---|---|
8:008:058:108:158:208:258:308:358:408:458:508:55 | ||||||
今日 |
21 六月 2025 | ||||||
---|---|---|---|---|---|---|
0:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:00 | ||||||
今日 |
六月 2025 | ||||||
---|---|---|---|---|---|---|
日 | 一 | 二 | 三 | 四 | 五 | 六 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |
今日 |
2025 | ||||||
---|---|---|---|---|---|---|
一月二月三月四月五月六月七月八月九月十月十一月十二月 | ||||||
今日 |
2020-2029 | ||||||
---|---|---|---|---|---|---|
201920202021202220232024202520262027202820292030 | ||||||
今日 |