This document contains code that implements inheritance and method overloading. It defines a base mob class with getmob and putmob methods to retrieve and display student roll number and name. The drive class inherits from mob and overloads getdrive and putdrive methods to also retrieve and display subject marks. The pen class inherits from drive and overloads getresult and putresult methods to calculate and display the total marks. The main method creates a pen object and calls its methods.