Python the 8th time----class

Source: Internet
Author: User

1. Classes wrap functions and data neatly together

2. In object-oriented programming, you write classes that represent things and scenarios in the real world and create objects based on those classes

3. Creating an object based on a class is called instantiation, which allows you to use an instance of the class

4. A set of data and the method that processes them (object), the object of the same behavior is summed up as Class (class), and the inner details are hidden through the encapsulation (encapsulation) of the class;

Implementation of the specialization (specialization)/generalization (generalization) of the class through inheritance, and dynamic dispatch based on the object type through polymorphism (polymorphism)

5. Python is the only strategic positioning in many mainstream languages, and always adhere to the original strategic positioning of the non-wavering language

9. Class--Instance--function (method)--module

Python the 8th time----class

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.