Skip to content

Commit bb642de

Browse files
committed
拓展
1 parent 5322a9a commit bb642de

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

DesignPatterns/TemplatePattern/TemplatePattern/NewMobilePhone.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,21 @@ protected override string User()
4646
return "秘书";
4747
}
4848
}
49+
50+
51+
class AndroidMobilePhone : NewMobilePhone
52+
{
53+
protected override string User()
54+
{
55+
return "Android系统手机";
56+
}
57+
}
58+
59+
class WPMobilePhone:NewMobilePhone
60+
{
61+
protected override string User()
62+
{
63+
return "WP系统手机";
64+
}
65+
}
4966
}

0 commit comments

Comments
 (0)