Python 3 Object-oriented programming

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.