Java set super instance of instance
问题 I might just be unable to google for the right words, but I can't find an answer to the following question. Is it possible to explicitly set the superclass of a new class instance. E.g. I have a SuperClazz instance and want to create a new instance of Clazz which extends SuperClazz . Can I just do something like this (the code is just what I want to do, it doesn't compile and is not correct): class Clazz extends SuperClazz{ Clazz(SuperClazz superInstance){ this.super = superInstance; } } 回答1: