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 ....