real life examples of single inheritance ,multiple ,multilevel,hierarchical, hybrid inheritance
Single level inheritance: Cat is Animal. Multiple inheritance: Digital radio is Radio and Clock. Multilevel inheritance: Square is Rectangle, Rectangle is Shape. Hierarchical inheritance: Apple, Grape and Watermelon are Fruits. Hybrid inheritance: IPod is MP3 player, IPhone are MP3 player and Phone.