inherit py class studentclass phdstudent(student)override __init__ but use __init__ of base classdef __init__(selfnameagethesis_project)self thesis thesis_project student __init__(selfnameagedefine new method def get_thesis_project(self)return self thesis stu phdstudent('pekka' 'theory of everything'use method from the base class stu say_hello(use new method proj stu get_thesis_project(