Show Menu
Cheatography

CS1010S Cheat Sheet by

Truth Table (AND)

AND
TRUE
FALSE
TRUE
True
False
FALSE
False
False

Defining Exceptions

class LayerFilledException(exception):
(indent) pass
   

OOP

- The class Car inherits Vehicle. Hence, it will inherit all the functi­on/­method including drive.
- There is no need to define any function in Pickup­_Truck because all the functions can be inherited from both the super classes
- During initia­lis­ation, we have to take in all relevant arguments and call the super class init
- Calling superclass function:
super( ).deli­ver­(order)
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Linux RAID with mdadm Cheat Sheet