Object Oriented Programming with Python
This book is 90% complete
Last updated on 2017-07-19
About the Book
Have gotten started with Python 3 and finding Object Oriented Programming difficult? Do not worry. We are here to assist you on the quest of understanding the very Philosophy of Object Oriented Programming with Python 3. We present our decades of cumulative experience together in the form of this awesome book so the readers can enjoy the exploration of the Amazing World of Python 3 Object Oriented Programming. The book covers the following topics,
- Classes and Objects
- Philosophy Behind Object Oriented Programming
- modules and packages
- Inheritance
- Static Methods, Abstract Classes, Final Classes
- Polymorphism
- Exception
- Built-in Data Structures
- Python Strings
- Iterators and Generators
The book will constantly be updated and we will add the new material based on the readers' precious feedback.
Table of Contents
- Acknowledgments
-
Preface
-
- Why am I writing this book?
- Who this book is for?
- How is this book organized?
- What this book is not?
-
About the Author
- Ashwin Pajankar
- Sushant Garg
- Errata and Suggestions
- How to Help the Author
-
-
1. Introduction
- 1.1 Objects and Classes
- 1.2 Everything is an Object in Python
- 1.3 Conclusion
-
2. Getting Started with Classes
- 2.1 Docstrings
- 2.2 Adding attributes to class
- 2.3 Adding a method to the class
- 2.4 Initializer method
- 2.5 Multiline Docstrings in Python
- 2.6 Conclusion
-
3. Modules and Packages
- 3.1 Modules
- 3.2 Packages
- 3.3 Conclusion
-
4. Inheritance
- 4.1 Basic Inheritance in Python
- 4.2 Method Overriding
-
4.3
super()
- 4.4 Conclusion
-
5. More Inheritance
- 5.1 Multiple Inheritance
- 5.2 Method Resolution order
- 5.3 The Diamond Problem
- 5.4 Abstract class and method
- 5.5 Access Modifiers in Python
- 5.6 Conclusion
-
6. Polymorphism
- 6.1 Method Overloading
- 6.2 Operator overloading
- 6.3 Conclusion
-
7. Exceptions
- 7.1 Syntax Errors
- 7.2 Exceptions
-
7.3 Handling exceptions
- 7.3.1 Handling exceptions by types
-
7.4
else
block - 7.5 Raising an exception
-
7.6
finally
clause - 7.7 User Defined Exceptions
- 7.8 Conclusion
- 7.9 Summary
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...