Home > Net >  Now I don't have a bit of object-oriented programming ideas
Now I don't have a bit of object-oriented programming ideas

Time:09-24

Halfway out of the family of c #, wrote a, production test have also been thinking about the concept of object-oriented,

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, tx

CodePudding 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 programming

CodePudding 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:

reference 7 floor of the knights templar 18 response:
just wondering, don't understand, of course, object-oriented programming, object-oriented programming, it should be 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,

Thank you very much!
The packaging is not good, I also understand is necessarily more properties of encapsulation, use the set, the get
  • Related