C# third time learning

1. Classes are models of real-world things

  A class is an abstraction of something in the real world. (Modeling is a process of removing the false and preserving the true (what is used), from the surface to the inside (what is encapsulated in it))

                                                 Software Engineering, Physical and Logical Composition Engineering

2. The relationship between classes and objects

  1. An object is also called an instance, which is an entity in memory obtained after a class is instantiated (object and instance are one thing)

 2. We can create objects, this is instantiation

3. Use the new operator to create a class.

4. Reference the relationship between variables and instances.

 

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324885644&siteId=291194637