C # complete solution of important parts of OOP,
If you have patience, please take a look. You must have something to use. Please trust me!
What you see is only a part of it, and it has not been updated yet. It is to be continued ....
The definition of a Class Object refers to the reflection of entities in the real world or the thinking world in a computer. It encapsulates data and operations on the data. An object is a variable of the class type. Classes and objects are the most basic concepts in object-oriented programming. [2] relational classes of class objects are abstract objects, while objects are specific instances of classes. Classes are abstract and do not occupy memory, while objects are specific and occupy storage space. A class is a blueprint for creating objects. It is a software template that defines methods and variables included in a specific type of objects. Class Declaration public data and member functions class name {public: protected data and member functions protected: private data and member functions private:
Class is an abstract concept that represents a class of things and is extensive;
Objects are specific and actual, representing a thing, with individuality;
A class is a template of an object, and an object is an entity and an instance of the class.
Class creation:
First, note that the first letter of the class name is capitalized:
Class_name object_name;
Object_name = new class_name ();
Second, note that the first letter of the class name is capitalized.
Class_name object_name = new class_name ();