public static class ViewHolder {
public int a,b;
public void method();
}
are the method and the variables a and b by default static when I declare the class as static or do I have to separately declare them static ? I know its a noobish question but I am a little confused right now 🙁
No, when you declare an inner static class you specify that the declaration itself is static, so that you don’t need an object instance of the parent class to access it.
Nothing regarding inner members is involed.