How should OOP be understood?

Updated on culture 2024-04-21
6 answers
  1. Anonymous users2024-02-08

    Everything is an object, and everything is seen as an object, and the object has a method (behavior) and an attribute (characteristic).

  2. Anonymous users2024-02-07

    The three main features of object-oriented programming are encapsulation, inheritance, and polymorphism.

    1. Encapsulation: Encapsulation refers to assembling the data in a computer system and all the operating languages related to this data, encapsulating them in an organic entity, and encapsulating them in a "module", that is, in a class, which provides a good foundation for the modularity of the relevant parts of the software structure.

    2. Inheritance: It is another important feature of object-oriented technology, which mainly refers to the connection and difference between two or more classes. Inheritance, as the name suggests, is the continuation of some aspects of the former, while object-oriented technology refers to the replication or continuation of some unique characteristics and capabilities of one object to another.

    3. Polymorphism: From a macro point of view, polymorphism refers to the fact that in object-oriented technology, when different objects receive the same identical message at the same time, the actions shown are different and have a variety of forms;

    At the micro level, polymorphism means that in a class of a set of objects, object-oriented techniques can use the same invocation method to call the same function name, even if the functions with the same function name hold the key represent different function balances.

  3. Anonymous users2024-02-06

    OOP core ideas: encapsulation, inheritance, polymorphism.

    Understand: An object is made up of data and permissible operationsEncapsulated body, which has a direct correspondence with objective entities, a class of objects defines a group of objects with similar properties. Per-inheritance is a way to share properties and operations of classes that have hierarchical relationships.

    The so-called object-oriented is based on the concept of objects, object-centric, and class-sumInheritanceIn order to construct a mechanism, to know, understand, and portray objectivityThe world and design and build the corresponding software system.

    The basic idea of OOP is to separate the implementation of the component from the interface, and to make the component polymorphic.

    What about the OOP concept:

    OOP is a software programming method that only became popular in the nineties. It emphasizes the "abstraction", "encapsulation", "inheritance", and "polymorphism" of objects. We say that programming is composed of "data structure" + "algorithm".

    From a macro perspective, the objects under OOP are programming-centric and program-oriented objects. The OOD we are going to talk about today is an information-oriented object and is centered on user information.

    Object generation:

    First, it is to generate new objects based on prototype objects.

    Second, it is to generate new objects based on classes.

  4. Anonymous users2024-02-05

    OO (Object Oriented) is object-oriented OOP (Object Oriented Programming) is object-oriented programming, in fact, the core idea of OOP is my personal understanding is that people understand a way of understanding things, that is, treat it as a whole, such as people, it should include five senses, limbs and other parts (members), with speaking, eating and other behaviors (methods), being able to pass on their genes to the next generation (inheritance), Eating is different for each person (polymorphism), and actions such as how to digest food are done by everyone, but outsiders may not know how to do it (concealment), and abstraction. If you need the concept of OOP, just search everywhere, such as encyclopedias, but I think it's better to refer to the way we understand things, I hope it will help you.

  5. Anonymous users2024-02-04

    You know, object-orientation is a thought. Thinking about this thing, for the general public, can be said casually, but it also lingers. Everyone can say it casually and improvise, can that be called thought?

    So you won't find such books, and it's even more difficult to find such people to tell you the so-called OOP ideas that are really exciting, and the only thing they can brag about is what entity, what attributes, what relationship, what dependence, etc., copy foreign bullshit concepts, as for the scriptures, that few people can understand.

    However, I can give you some pointers from a certain angle. First, there is no doubt that object orientation is process-oriented. No matter how many classes are defined in your program, when your program runs, it always starts from the entrance and runs until the program exits, which is a single logical control flow.

    So you have to understand that the essence of object orientation is not to intervene in the single process logic of the program, but to strictly manage the ** and data in the program. Can you read this sentence from a book? Okay, let's talk about that again.

    So, why and how does object-oriented manage data and data?

    1. The biggest drawback of process-oriented programming is that the scope of data and ** cannot be controlled and there is no effective differentiation mechanism, which is not easy to manage and maintain.

    2. Object-oriented is to set the relevant data and ** together to form a class according to the concept of the entity in the real world, which not only limits the scope of its use, but also makes it easier to distinguish.

  6. Anonymous users2024-02-03

    There is really no OOP in the whole book, but there is a professional course in the computer field, "Software Engineering", which will have dozens of pages dedicated to object-oriented methods. I took the software engineering exam in October, and I just learned it.

    Approximate table of contents: object-oriented approach.

    1. Object-oriented overview.

    2. Object-oriented model.

    3. Object-oriented analysis.

    4. Object-oriented design.

    5. Object-oriented implementation.

    This is the self-examination textbook 2333 "Software Engineering" textbook, if it is helpful, you can take a look.

Related questions
7 answers2024-04-21

Mencius: King Liang Hui Part I" [Original Text] King Liang Hui said: "The Jin Kingdom, the world is not strong, and the people know it." and the body of the widow, the east was defeated by Qi, and the eldest son died; The west mourning place is 700 miles from Qin; The south is humiliated by Chu. >>>More

12 answers2024-04-21

When Hermes heard this, he immediately rebuked: "Nonsense, how can you give away his statue as a gift?" Aren't you afraid of being punished? At this time, Hermes's face was a little hideous, his face was red, and he was obviously angry. >>>More

10 answers2024-04-21

For students with more stubborn tempers, they can't come hard. >>>More

16 answers2024-04-21

Meaning: It is true that learning ancient aphorisms and aphorisms will be rewarding, but what doubts will people have if they are happy with their lives? >>>More

9 answers2024-04-21

Personally, I think it is enough to do your job well and maintain a kind and patriotic heart. >>>More