Object Class's protected method MemberWiseClone()

Posted by Bon_chan on Stack Overflow See other posts from Stack Overflow or by Bon_chan
Published on 2010-05-26T15:28:30Z Indexed on 2010/05/26 15:31 UTC
Read the original article Hit count: 138

Filed under:
|
|

This might be a dumb question, but I don't get it:

I have a class called Card. I want to do a shallow clone using MemberWiseClone(). In Theory Card inherits from Object. So it should be able to use MemberWiseClone(), even if MWC() is protected ??

Am I missing/forgetting something?

© Stack Overflow or respective owner

Related posts about c#

Related posts about protected