Hi,
Class A extends class B like so:
public class A extends B{}
Why is class B’s constructor called? I thought when A extends B, A gets all of B’s methods and variables, great; but I don’t need the constructor called because class B has already been created. I just want class A to inherit all of B’s methods and variables. Can a class have two constructors, so when I extend class B an empty constructor is called but when I instantiate it the constructor with code is called?
I feel like I’m missing something here. :puzzled:
Thanks,
waffe