Cheatography
                https://cheatography.com
            
        
        
    
                   
                            
                    
        
        
            
    
        
                            
        
                
        
            
                                
            
                
                                                | 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 function/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 initialisation, we have to take in all relevant arguments and call the super class init |  
                                                                                            | - Calling superclass function:super( ).deliver(order)
 |  | 
            
                            
            
            
        
        
        
        
        
            
    
        
          
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets