During the interview, I will always be asked how object-oriented is understood? I feel that I understand the concept of encapsulation inheritance polymorphism, but I don't know how to answer it. So I would like to ask everyone's understanding of object-oriented programming ideas, and what are the things in coding that actually reflect object-oriented programming... during the interview, I will always be asked how object-oriented is understood? I feel that I understand the concept of encapsulation inheritance polymorphism, but I don't know how to answer it. So I would like to ask you about your understanding of object-oriented programming ideas,
What are the things noted in coding?The idea of object-oriented programming (is it to write everything in the form of a class ?), Of course, you can also directly talk about your answers to this question. Thank you for your questions.
Reply content:
During the interview, I will always be asked how object-oriented is understood? I feel that I understand the concept of encapsulation inheritance polymorphism, but I don't know how to answer it. So I would like to ask you about your understanding of object-oriented programming ideas,What are the things noted in coding?The idea of object-oriented programming (is it to write everything in the form of a class ?), Of course, you can also directly talk about your answers to this question. Thank you for your questions.
Object-oriented, I understand that data and operations are put together and they have their own lifecycles. For abstraction and polymorphism, virtual programming, that is, interfaces or abstract classes. Abstract various changes. The corresponding changes are polymorphism. There is a classic saying of polymorphism: the parent class references the Child class object.
Encapsulation, inheritance/combination, and polymorphism.
Encapsulate hidden implementations.
Reuse inheritance to avoid the combination of too many levels of inheritance.
Polymorphism can implement different behavior of different sub-classes based on interfaces.
I am a newbie. I don't know how to answer this question. The answer should not be deducted.
I have never asked such questions during interviews. It is very simple. If you can correctly understand the object-oriented concept and use it in practice, then you are very interested in programming with object-oriented thinking. But unfortunately, can a newbie answer these questions? If the answer is correct, no one will come here.
The landlord taught you an interview tips. If you have a question that you don't know how to answer, the interviewer will certainly ask you a question before the interview is over, at this time, you will ask him in turn how he will answer this question if he is a candidate.
If you have interviewed others and interviewed others, you have to speak on your own.
Object-oriented development is a future-oriented, maintenance-oriented, and scalable development method.
DESIGN: encapsulation, inheritance, polymorphism, abstraction, and other design patterns.
Performance: stability, reusability, maintainability, and scalability.
I suggest you look at "java programming ideas" and I cannot understand it here!
Is it to write everything in the form of a class?
No class is available for prototype-Based Object-Oriented objects.
Object-oriented, most importantly, message transmission.
You can try to simulate an object-oriented system without using class and traits in PHP. It should be better understood.