The method clone() from object is not visible?

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

Question:

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


        
8条回答
  •  情话喂你
    2020-12-08 07:09

    For you to be able to clone MyClass, it has to implement the Cloneable interface

提交回复
热议问题