Object-Oriented Program Design Notes (1)

xiaoxiao2021-03-06  92

Object-oriented is a very interesting design philosophy. It tries to explain the structure of the problem in accordance with people's views, and strive to transfer problems in the problem domain to the analysis model, then transfer to opposing program code. Currently, the use of object-oriented technology is like the rain, so that you should have a professional engineer. I. Object-oriented origins Today, object-oriented (Object-Oriented) The word has become a darling of the computer industry, however, in eighty years ago, it is proposed as a philosophical idea for understanding the world. This idea is based on the "Tractatus Logico-Philosophys" (Tractatus Logico-Philosophicus) published in 1922. Vitgenstein believes that the world is made of simple basic objects, which is the cornerstone for object-oriented design. Objective ideas in the computer industry originated in the SIMULA language in the 1960s and is perfect and standardized in the SmallTalk language. Second, the object-oriented model is object-oriented technology in the computer industry, and it is increasingly popular, but knowing what is the essence of object-oriented design? In fact, object-oriented is an abstraction of the real world. We know that the real world is composed of substances (presence, things). In the information area or computer industry we abstract: a problem domain is made by an object, which is mapped in the real world. The real world is characterized by its nature and function. For example, my bike is the frame of aluminum alloy, can be advanced, brake, aluminum alloy is the nature of the bicycle, advancement, and brakes are the function of bicycles. These are information about the presence (abstract) reality world (abstract) in the real world. This information encoding is data. The data is information that the computer can recognize. We can finally map things in the real world to objects in the field and are further mapped into classes in the field.

Object is an abstraction of things in the problem domain. Because the word is coming from philosophy and mapped things in the real world, the object also has the characteristics of things: identity. So, what is the identity (Identity)? Philosophers believe that things have a common feature: they all have the same one, and each other is different. It is one of the necessary conditions for things.

转载请注明原文地址:https://www.9cbs.com/read-96502.html

New Post(0)