結果 : explain various types of inheritance with example