Until recently and colleagues write a company production management system (MES), responsible everyone finishing first part of the interface, just discover oneself did not understand the meaning of object-oriented programming,...
Do one thing, seems to be every class is object-oriented
CodePudding user response:
Some people are facing colleagues programming, txCodePudding user response:
A CV?CodePudding user response:
Do you want to say so, there is no problem,Because of elaboration to each interface return objects, may be different viewmodel,
The viewmodel different interfaces for return, only
But for the database mapping entity object,
It can be turned into many different viewmodel,
How much evolution, depends on the front desk/need each other,
CodePudding user response:
Baidu oriented programmingCodePudding user response:
Have to do is find a object!Give us a description of you find an object looks like, have what special features, will do, not what bai
Class object
{
Age
Height
Measurements
Professional
Personality
Special
}
CodePudding user response:
CodePudding user response:
Just wondering, of course, understand object-oriented programming, object-oriented programming, should be to connect, general process is like this:1, you write the function of segment code
2, looking at it, you start thinking about: how to make it shorter, better understanding, better maintenance
3, make it become shorter, you will use encapsulation; Make it better understand, can use the class (object), using layer code (inheritance), with the inheritance have distinguishing behavior (polymorphism);
Above, several basic concepts of object-oriented, contains: encapsulation, inheritance, polymorphism
You now completed the first step, but has yet to start the second step,
CodePudding user response: