Having this class
public abstract class Mother{ public class Embryo{ public void ecluse(){ bear(this); } } abstract void bear(Embryo e); }
I can only create an Embryo instance if I have an instance of Mother:
new Mother(){...}.new Embryo().ecluse();
Question:
- How to define Mother as an interface?
java interface
Peter Rader
source share