inheritance in different language