type of inheritance in c