C # small summary (Object-Oriented ),

Source: Internet
Author: User

C # small summary (Object-Oriented ),

Preface

I have been learning c # for a year. I have never written a general summary of some notes. So now I am writing a small summary.

Content

1. Object-oriented

I believe that all the children's shoes who are new to programming are confused by this concept. For those who are new to programming, this concept is very abstract, the following is my understanding of object-oriented technology so far.

1. What is object-oriented

Encapsulation inheritance Polymorphism

In terms of popularity, it seems like a doll. The previous method of making a doll is to make a whole mold with 10 faces. To make 10 sets of dolls, the object-oriented method is to separate the headers, And the trunk. Make a different face model with only 10 faces. other parts such as mold with multiple headers can be reused, for example, if the mold is damaged somewhere, then a mold has to be replaced. If it is oriented to objects, it is the damaged part. just replace the part.

2. Benefits of object-oriented

First, the code reusability is improved, greatly reducing the amount of code written by programmers. The program is modular and the coupling between modules is low, making the program easier to maintain.

In the future, more ....

 

 

 

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.