简体   繁体   中英

How can I implement an interface and inherit from a base class?

The below is not valid-

public partial class form1 : Form : ICloneable 

Is there a simple way to use ICloneable on a form class?

实际上正确的方法是用逗号分开的:

public partial class form1 : Form, ICloneable 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM