最佳答案
If I have for example a class along with a helper class to do some of its functionality, does it make sense to make it as an inner class.
public class Foo {
private FooHelper helper;
// constructor & any other logic
public void doSomeThing() {
helper.do();
}
}
public class FooHelper {
public void do() {
// code
}
}
In the above case does it make sense to make the FooHelper
as an inner class ? Apology if this sound stupid but I am little confused about the use cases.