By Default only non parametric construstor is called but since class A has parametric constructor you need to call it from class B