The most basic structure of class-oriented object-oriented programming is the class or itself. We canThink of a class as a template that defines the appearance of a part. Objects are parts created using these molds.. From a structured, control flow-basedProgramTurning to object-oriented programs, the mindset has undergone fundamental changes because object-oriented programming provides an additional organizational hierarchy. A smaller program is simplified to some extent. More importantly, programming through object-oriented ideas provides the ability to create larger programs becauseCodeBetter organization. At the same time, one of the key advantages of object-oriented programming is that it is not allowed to re-create new programs. It can be assembled together in a series of existing objects to extend classes with new functions, add more classes and re-assemble them to provide new functions.
Main features of Object-Oriented Programming
- Encapsulation: encapsulation can hide details
- Inheritance: inheritance allows you to establish a "is a" relationship between similar and different objects.
- Polymorphism: A method or type can be implemented in multiple forms.
The following is a thought map about class knowledge, which can be viewed in full screen. Click here:C # class <Mind Map>.
References & further reading
C # Essence