Object-oriented object and class determination

Source: Internet
Author: User
Tags abstract definition

Object-oriented is a software technology from software design, it is a mature thought, and all things are objects, so this kind of thought universal. In software design, object-oriented technology has become the mainstream of software development, so that computers can be more in line with the human mind to solve the problem.

object is the composition of the objective world, like everything we see can be considered an object, the bench is an object, the table is an object and so on; Each object has its own data and operations, state, and behavior. The nouns of these descriptions are similar in meaning, and are used to describe the data. The bench's own weight height and so on is the bench this object data; The operation and behavior of the bench is a property of the bench, the role of the bench is used to sit; Describe whether the bench is sitting is now the state of the bench. objects are also meaningful only if they have states and attributes, otherwise the object has no meaning to exist.

Objects can also be conceptual objects, objects that cannot be instantiated, such as ... The future, the dream of this kind, can not be instantiated objects are also objects. In object-oriented programming, you can also use a model to represent it.

An object in software is a software construction model that combines state and behavior to describe an object in the real world, to build a model of real-world objects, such as an animated program that represents a real-world flight, or a mechanical vehicle that controls an electronic machine to represent a real-world operation.

Objects communicate with each other through messages, and messages refer to information that describes the occurrence of an event. An event is a predefined action by a user or system that acts on an object, identifies events and responds accordingly, and generates messages that drive the execution of the entire system program.


A class is a combination of a set of objects that have the same properties and operations. Class describes the common characteristics of a set of similar objects, providing a uniform abstract description of all objects of the class. There is no uniform definition and division of the class, usually to find out the commonness of the object, and to describe the object with generality in a class.    

The class gives an abstract definition of all the objects of the class, defines the data structure of the object and the actions that the object will perform, that is, what the object of the class is called to do, and what the object will do when the operation is performed.

Class is also used to create a data area in memory for storing properties of new objects or associating series behaviors with objects.

through the above study, we need to know that the relationship between objects and classes is inseparable, in the software requirements analysis can be extracted from a very important noun, these nouns are the software identified objects, and then use these objects to abstract the class, the target system to determine the underlying object type. in Object-oriented program design, object is the basic partition unit of the system, it is very important to determine the class and object, it is also the first step of software development, the class and object are determined, and the testing and maintenance of the software is very helpful.

Object-oriented object and class determination

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.