C # New basics (5)

Source: Internet
Author: User

The most basic structure of class-oriented object-oriented programming is the class or itself. We canThink of a class as a template that defines the appearance of a part. Objects are parts created using these molds.. From a structured, control flow-basedProgramTurning to object-oriented programs, the mindset has undergone fundamental changes because object-oriented programming provides an additional organizational hierarchy. A smaller program is simplified to some extent. More importantly, programming through object-oriented ideas provides the ability to create larger programs becauseCodeBetter organization. At the same time, one of the key advantages of object-oriented programming is that it is not allowed to re-create new programs. It can be assembled together in a series of existing objects to extend classes with new functions, add more classes and re-assemble them to provide new functions.

 

Main features of Object-Oriented Programming
  1. Encapsulation: encapsulation can hide details
  2. Inheritance: inheritance allows you to establish a "is a" relationship between similar and different objects.
  3. Polymorphism: A method or type can be implemented in multiple forms.

The following is a thought map about class knowledge, which can be viewed in full screen. Click here:C # class <Mind Map>.

 

 

References & further reading

C # Essence

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.