多態とはどういう意味ですか.
982 ワード
:
,
, , n ,
: ,
;
,
,
,
,
...
!
a =
b =
c =
, " " , ,
, .
[ ], " " , ,
.
:
1.
2. , .
,
, shape(), . [ , , ], shape , ,
,
[ = ]
for example:
a = new ();
a = new ();
a = new ();
a = new ();
, a ,
a.shape(), .
a = new ();
a.shape ,
a = new (); a.shape