The method clone() from object is not visible?

后端 未结 8 697
半阙折子戏
半阙折子戏 2020-12-08 06:46

Question:

package GoodQuestions;
public class MyClass {  
    MyClass() throws CloneNotSupportedException {
        try {
            throw new CloneNotSuppo         


        
8条回答
  •  醉话见心
    2020-12-08 07:16

    You just have to make MyClass implement Cloneable interface. No need to provode implementation for clone().

提交回复
热议问题