Question: QUESTION 15 You are given the following class: Class Student: IS is a class about soudens sler init (sell, myname=' myschool=): Bell. nane myname sell._school


QUESTION 15 You are given the following class: Class Student: IS is a class about soudens" sler init (sell, myname=' myschool=""): Bell. nane myname sell._school myschool der, printall (self): print (self, name sell.school) QUESTION 15 You are given the following class: 1833 student : This is about sidence fet myschool- seis school my chool de printall (1) DABLE School) 1. Define a subclass Workingstudent and write its init method (e. the constructor). The Workingstudent subdue inutit from the 2. Write a method for the subclass Workingstudent that overrides the method printall and prints besides the name and the school 3. Create an instance of the child class and name it mystudent and provide initial values of your choice 4. How will you print the name, the school and the salary of the child dass? For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac) B 1 US Paragraph 14px 1 X X T Te 992 ES Arial v Click Save and Submit to save and submit. Click Save All Answers to go alla ASUS 16 18 DI 15 [X] 14 13 12 X SC & 7 5 5 6 3 N 4 { 1 r T Y -). The Workingstudent subclass inherits from the class Student and has one more attribute, the salary ntall and prints besides the name and the school the salary as well. values of your choice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
