Friday, February 28, 2014

Second entry

This is the second entry of my SLOG, for a long time from the first one. There were many new concepts and it is starting to get a bit challenging. The first thing that I would like to talk about is the inside touch of different classes, method and modules that exist in python.
During week 3 we learned that the easiest way to copy a class and modifying is by using an inheritance. The inheritance has all the same properties as the original class but it could be change by accessing the function and modifying the context in it. One interesting factor of inheritance is when u change the base class the subclass will also be affected but changes made in subclass will only affect itself.


Further on week 3, we started to learn all kind of exception and how it is being raise. Personally I fell like is a pretty straight concept, the only thing that need some attention is the clause try :   -----------      except :  ------- . Code under try, whenever an exception happens the program ignores anything else under the error line and jumps into the except part.

No comments:

Post a Comment