Tag: Style color file data problem code
. NET program basic authoring, execution Flow (C #)1> Write C # code and save it as a. cs file.
2> the. cs file to a. NET assembly (. exe or. dll) by using the Csc.exe program. At this time the EXE or DLL is not machine code (the CPU is not understandable). ">csc/out:c:\a.exe C:\program.cs"
The 3> program runs with JIT compilation (Just in time), compiles the assembly into a machine code that the CPU can understand, and the CPU can execute it. (This compilation process is related to the current machine (depending on the current machine's memory, CPU, etc.).) Ngen.exeObject-oriented (OO)What is object-oriented? A way to analyze the problem (which enhances the scalability of the program).
Object-oriented three major features:encapsulation, inheritance, polymorphism。
What is a class? What is an object? What are the differences between classes and objects? How to write a car class?
The class is the stencil that creates the object of the stencil, abstract.
A class is a data type, a user-defined data type
class Composition: Fields, properties, methods, constructors, etc.
The object is specific and is a concrete instance of the class. Objects have attributes (features) and methods (behaviors)
A class contains data (represented by a field) and behavior (represented by a method (function, function) as a piece of code with a name)(The object is followed by the first Class)