OOP is all about real-world objects and inheritance is a way of representing real-world relationships . Here’s an example – car, bus, bike – all of these come under a broader category called Vehicle. That means they’ve inherited the properties of class vehicles i.e all are used for transportation.