Object-Oriented Approach Nomenclature
Object-Oriented Approach Nomenclature is as follows:
Object-Oriented Approach is a software development methodology, which is based on objects, encapsulates data and operations in a separate entity, and realizes the functionality of a program through interactions between the objects and message passing. Object-oriented approach is a popular software development paradigm, which can effectively improve the maintainability and reusability of software and reduce the cost of software development.
The basic concepts of the object-oriented approach include:
Object: an object is an abstraction of a real-world entity, including attributes and operations. For example, a circle object may include attributes such as radius, perimeter, and area, as well as operations such as calculating perimeter and area.
Classes: A class is an abstract description of a set of objects with the same attributes and operations. For example, a circle class may define a common radius attribute, as well as operations such as calculating perimeter and area.
Encapsulation: Encapsulation is the encapsulation of data and operations in a separate entity, making it impossible for the outside world to directly access its internal properties. The only way to access its internal properties and methods is to operate through the entity’s interface.
Inheritance: Inheritance is a technique to realize code reuse, through inheritance, subclasses can inherit the attributes and methods of the parent class, and can add their own unique attributes and methods.
Polymorphism: Polymorphism refers to the fact that the same operation can produce different results when applied to different objects. For example, the same addition operation may produce different results for integers and floating point numbers.
Messaging: Messaging is a way for objects to communicate and interact with each other. An object sends a message to request another object to perform an operation, and the object receiving the message performs the operation according to the message and returns the result.
The object-oriented approach has a wide range of applications, including operating systems, compilers, databases, graphical interfaces, game development, and other fields. It not only improves the maintainability and reusability of software, but also makes the software design more flexible and easy to extend.
What is Object-Oriented Approach
Definition 1: An object-oriented approach is a method of constructing, testing, and refactoring software using concepts such as objects, classes, encapsulation, inheritance, polymorphism, and messages.
The object-oriented approach is an epistemologically based approach to understanding and analyzing the problem space in terms of objects, and to designing and developing software systems (solution spaces) composed of objects.
Because the problem space and solution space are both composed of objects, this eliminates problems caused by inconsistencies in the structure of the problem space and solution space. In short, object-oriented is to face the thing itself, object-oriented analysis process is the process of understanding the objective world.
The object-oriented approach starts from the object and develops concepts such as object, class, message, and inheritance.
The main advantages of the object-oriented approach are: conformity to the usual way of thinking; a high degree of continuity from analysis to design to coding using a consistent model representation; and good software reusability.
ObjectOriented is a software development methodology, a programming paradigm.
Object-Oriented concepts and applications have gone beyond programming and software development, expanding into areas such as database systems, interactive interfaces, application architecture, application platforms, distributed systems, network management structures, CAD technology, artificial intelligence, and so on. Object-oriented is a method of understanding and abstracting the real world, and is a product of the development of computer programming technology to a certain stage.
Object-oriented is relative to process-oriented, object-oriented approach, the relevant data and methods organized as a whole to view, from a higher level to the system modeling, closer to the natural mode of operation of things.
What is Object-Oriented Approach
An object is an encapsulation of data and permissible operations that has a direct correspondence to an objective entity; an object class defines a set of objects with similar properties. And per inheritance is a way of sharing attributes and operations of classes with hierarchical relationships. The so-called object-oriented is based on the concept of object, object-centered, class and inheritance as a construction mechanism to recognize, understand, portray the objective world and design and build the corresponding software system. The specific implementation steps of the object-oriented approach are as follows:1) Object-oriented analysis: Starting from the problem statement, analyze and construct a model of the problem domain of the display world of interest and represent it with the corresponding symbol system. The model must be a succinct, unambiguous abstraction of what the target system must do, not how to do it. The analysis steps are (1) identify the problem domain, including defining the domain, selecting the domain, and refining and adding to the domain as needed; (2) zone classifications and objects, including defining objects, defining classes, and naming them; (3) differentiate between the overall object as well as its components, and determine class relationships as well as structure; (4) define attributes, including identifying attributes, and arranging attributes; and (5) define services, including identifying the object state, determining the required (5) Define services, including determining object state, determining required services, and determining message associations; (6) Determine additional system constraints. 2) Object-Oriented Design: Object-oriented design is different from traditional functional decomposition-based design. Specific design steps are: (1) apply object-oriented analysis, improve and refine the results of the system analysis obtained with other methods; (2) design the interaction process and user interface; (3) design task management, determine the need for multi-tasking based on the previous step, determine the concurrency, determine the way to drive the task, the design of subsystems and the coordination and communication methods between the tasks to determine the priority; (4) design global resources, determine the message linkage, and determine the additional system constraints. ) Designing global resources, determining boundary conditions, and determining the software and hardware allocation of tasks or subsystems; (5) Object design. 3) Object-oriented implementation: It is relatively easy to implement an object-oriented design using an object-oriented language. If a non-object-oriented language is used to implement object-oriented design, it is particularly important to note and provide for the preservation of the object-oriented structure of the program. In traditional function-oriented methodologies, the emphasis is on identifying and decomposing system functionality. While this approach is the most direct realization of the goal, it makes the system difficult to maintain and extend because functionality is the most unstable and changeable aspect of a software system. Object-oriented design first emphasizes objects from the domain and then sets attributes and operations around the objects. With object-oriented design, the structure is derived from the stable object structure of the objective world. Thus, compared with traditional software design methods, it significantly improves software productivity, reliability, ease of reuse, ease of maintenance and other aspects of the effect.