C++???????麯?????????
???????????? ???????[ 2015/12/4 10:54:24 ] ????????.NET ???????????
???????????????????????麯????????????????£?
????class <????>
????{
????virtual <????><??????>(<??????>)=0;
????…
????};
?????????????£???????в?????麯???????????????????????????????麯?????????????????????????????????????麯???????á??????????????麯?????????
#include
class point//??????
{
public:
point(int i=0?? int j=0) { x0=i; y0=j; }
virtual void set() = 0;//???麯??
virtual void draw() = 0;
protected:
int x0?? y0;
};
class line : public point
{
public:
line(int i=0?? int j=0?? int m=0?? int n=0):point(i?? j)
{
x1=m; y1=n;
}
void set() { cout<<"line::set() called.
"; }//???
void draw() { cout<<"line::draw() called.
"; }
protected:
int x1?? y1;
};
??????????
???????д??麯?????????????????????????????????????????????????????????????????в?ν????????????????????????????????????????????????????????????????????????????????????
??????????????????????й????????????в?ν??У?????????????????????????????????????????????????????
???????????????????????????????????壬??Щ???????????????????????????????????????????????????????????????????
?????????????????????????????麯??????????????????????????????????????崿?麯????????????????л??????麯????????????????????????? ????????????????и?????????麯????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11