This article is a computer class of high-quality pre-sale recommendation >>>>Python 3 Object-oriented programming
Editorial recommendations
This book is not an introductory book for Python and is intended for developers who have basic Python experience. If you have experience with other object-oriented languages, you will be more likely to understand the content of this book.
Content Introduction
Python is an object-oriented, interpretive language, and object-oriented is a very important feature. This book uses Python's data structure, syntax, design patterns, from simple to complex, from beginner to advanced, to illustrate the object-oriented concepts and principles in Python in one step. This book is not an introductory book for Python and is intended for developers who have basic Python experience. If you have experience with other object-oriented languages, you will be more likely to understand the content of this book.
Partial catalogs
1th Object-oriented design 1
Object-oriented 1
objects and Classes 3
specifying properties and behaviors 5
Data Description Object 5
behavior is action 7
Hide details and create a public interface 8
combine and inherit ten
Inherit
Case Study
Practice
Summary
2nd Python Object
Create Python class
Add attribute
let the class actually do something
the initialization of the object
Explain yourself .
Modules and Packages
Organizational Module 36
Who can access my data 41
Case Study 43
Exercise 52
Summary 53
The 3rd chapter when the object is similar 54
Basic Inheritance 54
Extended built-in class 56
Rewrite and Super 58
Multiple Inheritance 59
Diamond Problem 61
Different set of parameters 66
Polymorphic 68
Case Study 71
Exercise 84
Summary 85
4th Chapter Exception Handling 86
Throws an exception 86
Throws an exception 88
What happens when an exception is generated 90
Exception Handling 91
Exception Level 97
To define your own exceptions 98
Exception is not an exception 99
Case Study 102
Exercise 112
Summary 113
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Python 3 Object-oriented programming