Why can not I extend classes with private constructor?
Getting the A: classes
public class A {
private A(){}
public static void limao(){}
}
and B:
public class B extends A {
private B(){}
public static void banana(){}
}
Why B can not extend A ?
There is no default constructor available my.package.name.A
My goal is to have some classes that contain only static members and would like to ensure that they are used in the correct way (without instances) but also inherit from other classes because they have methods in common. Currently I do this in C # through static classes but I can not apply something similar on my Android project.