In this chapter,we begin learning classes and modules concepts,we learn how to create instances,then we talk about methods and special methods..how to implement and use it in an efficient manner,we also know the concept of static data,static methods and decorators....we make our understanding of these concepts by studying an example...which is the length class,also we learned about collection classes and take an example about this subject..the example name is"the OrderedDict Class"..... one of the most important concepts in this chapter is inheritance and polymorphism....this concept describe how classes can inherit other classes and how methods can be executed in the run time depending on the concept of inheritance... Finaly,we take a general idea about modules and multifile applications and how we can import them in our programs.
In this chapter,we begin learning classes and modules concepts,we learn how to create instances,then we talk about methods and special methods..how to implement and use it in an efficient manner,we also know the concept of static data,static methods and decorators....we make our understanding of these concepts by studying an example...which is the length class,also we learned about collection classes and take an example about this subject..the example name is"the OrderedDict Class".....
one of the most important concepts in this chapter is inheritance and polymorphism....this concept describe how classes can inherit other classes and how methods can be executed in the run time depending on the concept of inheritance...
Finaly,we take a general idea about modules and multifile applications and how we can import them in our programs.
To know more about classes and modules in python,you can visit the following link:
http://www.sthurlow.com/python/lesson09/
The examples we study in this chapter are:length.pyordereddict.py