I don't even understand where the "super" comes in here ? It wasn't a class that was extended from a super class ?
public static class A implements Serializable {
protected A clone() throws CloneNotSupportedException {
return (A) super.clone();
}
}
So I passed this. But have no idea why or how it works.
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
dnlklnhfr
13 July 2020, 17:17
Implicitly your class A actually is extending a super class - the Object-class (surprise, surprise).
As the clone()-method is one of the basic methods of every object you can always call it as "super"-method.
+1