CSC 127A Lecture Notes - Lecture 33: Init

18 views3 pages

Document Summary

Section leaders will only be available until 5pm on wednesday due to the thanksgiving. If you want to not implement something that is within the parent class: Create a new __init__ method and do not include the year: python will spit out an error if you complete it in this fashion, however, you may overwrite the __init__ function in this way: Legal secretary will follow suit with the secretary class because it utilizes it as a parent class. Legal secretaries will also receive 10 vacation days vs 14 due to the change in the secretary class. For the vacation bonus, we can add the following method to the main parent class, However, in the secretary class since there is no vacation bonus we can overwrite that vacation bonus method like the following: def get_vacation_bonus(self): return 0. Eats 3 pieces of food and then stops. Walks up two and then down two (cid:498)a(cid:499) if hungry (cid:498)a(cid:499) otherwise.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents