Main Tasks of Object-Oriented Programming

What does object-oriented programming do?

The structured programming approach consists of three main logical structures:

1)Sequential structure: a sequential structure is a linear, ordered structure that executes modules of statements sequentially.

2)Loop structure: A loop structure is one that repeats the execution of one or more modules until a certain condition is met.

3)Selection structure: Selection structure is to choose the path of program execution based on whether the condition is valid or not.

**Adopting structured program design methodology, the program structure is clear and easy to read, test, troubleshoot and modify. As each module performs a single function, there are fewer inter-module links, making programming simpler than in the past, more reliable programs, and increased maintainability, each module can be prepared and tested independently. **

The objects supported in object-oriented programming languages have three distinct characteristics:

encapsulation, inheritance, and polymorphism; Javascript does not have a clear demarcation between classes and copies. In fact, all variable data types in Javascript are objects in JS, which supports a total of four types of objects: built-in objects, custom objects, browser program objects, and ActiveX objects. returnthis simply returns the object so that it can be referenced elsewhere, but it is not an additional object.

So, in procedural programming: program = algorithm + data structure

The data structure and algorithm are separated, so after the system is huge, its control, portability, reuse becomes a problem.

And in object-oriented programming:

Objects = Data Structures + Algorithms

Program = Objects + Objects + …..

So overcomes the problems in process oriented design.

What is the main study of computer science and technology in college?

ComputerScienceandTechnology is an undergraduate college program that is part of the computer science major. The basic study period is four years, and obtain a bachelor of engineering or science degree; in September 2012, the Ministry of Education will be computer science and technology and simulation science and technology two majors to computer science and technology. Computer Science and Technology is a broad-bore computer program integrating computer systems and networks. Cultivate high-level computer professional engineering talents with good scientific literacy, sense of independent learning and innovation, and combination of science and engineering.

The study content is divided into theoretical courses and practical courses, the theoretical courses are:

1. General knowledge: including humanities and social sciences, mathematics and natural sciences. The knowledge of humanities and social sciences includes the basic contents of economy, environment, law and ethics. Knowledge of mathematics and natural sciences includes the basic contents of advanced engineering mathematics, probability theory and mathematical statistics, discrete structures, mechanics, electromagnetism, optics and modern physics.

2. Basic knowledge of disciplines: Basic knowledge of disciplines refers to the professional basic knowledge that can cultivate students’ professional basic abilities such as computational thinking, program design and implementation, algorithm analysis and design, system ability and solving practical problems. It is recommended that the teaching content covers the core content of the following knowledge areas: program design, data structure, computer composition, operating system, computer network and information management, including the core concepts, basic principles and related basic technologies and methods, so that students can understand the history and current status of the development of the discipline.

Practical courses: there is a complete set of practical teaching system to meet the needs of teaching. It mainly includes experimental courses, course design, internship and graduation design (thesis). The total experimental equivalent in four years shall not be less than 20000 line codes. Carry out various forms of practical activities such as scientific and technological innovation, social practice, etc., internship or work in various engineering units to gain engineering experience and a basic understanding of the industry, including:

1. Software, hardware and system experiments.

2. Completion of the design and development of at least two systems of a certain size and complexity.

.

What is object-oriented programming

What is object-oriented design thinking? There may be many beginners who still do not understand this concept,

especially in this era of alternating old and new ideas, many people have just finished learning what now seems to be a process-oriented

language that is about to be phased out. Their minds are not yet free of process-oriented thinking, but they look up and realize that “object-oriented” has already become popular

and the word “object-oriented” is flying around. Just pick up a popular computer technology book, there will be no “object-oriented”

words! So the mind is confused: what do you mean by “object-oriented”? Those who are not interested, pass it by; those who aspire to develop in this

facet, hastily find a relevant book to gnaw on what is “object-oriented”. However, to break the boundaries of thought,

To say that it is difficult is not difficult, to a deep understanding is not easy. I have done some lightweight work, quite thought to have a little heart

Get, not afraid to laugh, written for the majority of peers have been criticized and corrected.

“Object (Object)” term, as early as the nineteenth century in the phenomenological master Husserl proposed and defined. Object is the world

objects in the world in the human brain in the reflection, is the human consciousness is the reason for the reflection of consciousness, is to do a kind of concepts and the existence of

pre-conceived things, which also includes the will of the human being. Let’s take an example. When we recognize a new object, which is called a tree, Ü

It is the concept of the tree that is formed in our consciousness. This concept will always be present in our minds and will not disappear just

because the tree is cut down. This concept is the reflection of objects in the real world in our consciousness. We can also have our own intentions about

it, although we don’t need to realize them – just think in your mind that the tree

will be cut down to make a table, stool, etc.- and we call that an intention. -we’ll call it an intention. Thus, the object is the reflection of the object in the objective world in the human mind

and the human intention. As long as this object exists in our thought-consciousness, we can use it to judge things of the same kind

. For example, when we see another tree, we do not fail to recognize it just because the first tree we saw is no longer there and has lost its model

The tree is not the same as the first tree we saw. When we are exposed to something new, our consciousness establishes an object for those things

. Of course how this process takes shape is beyond our scope.

The object described above is studied in a general sense, and thus it can be extrapolated to everything. By “object” we often

refer to a method of solving problems encountered in the information field. In particular, the application of software technology to solve

The way to solve problems. Such as object-oriented programming (Object-OrientedProgramming), object-oriented

analysis (Object-OrientedAnalysis), object-oriented design (Object-OrientedDesign), etc., which we often encounter. Applying

The concepts about objects introduced earlier allow for further analysis of these issues. When dealing with more complex systems, I

We can analyze it as an object. A system (a complete solution to a problem) as an

object can consist of multiple parts. Similarly, this object can be composed of multiple objects. For things of the same kind, they can be

represented by a single object. The benefits of this are obvious; it is flexible and efficient, and can greatly reduce the workload of designers

and simplify the actual model. An example. In the design of a relational database, we can treat a tuple

as an object and define a set of operation methods for it. These methods would apply to all tuples, so that we don’t have to think about different tuples (e.g., determining whether an element is legal) in a larger

context: because they have a common set of methods oriented to

themselves, they “solve” their own problems “on their own”, and they are able to “solve” their own problems “on their own”. “solve” their own problems. A higher-level object could be a table, view

, etc. Table objects have their own methods on top of tuple objects, such as adding, deleting, and so on. At this level,

it only has to do “its” thing, because with the support of the tuple object, it doesn’t have to think about things like whether an element is legal or not

. It is even possible to treat elements or groups of tables as temporal objects and define their own methods, sometimes to satisfy us.

In this way, the advantages of object-orientation are better demonstrated.

The above discussion can be described as an object-oriented analysis. In the specific design process, the appropriate

approach should also be used. Because object-oriented thinking is certainly very advanced, if not done properly, it will also not achieve the desired results.

This is mainly manifested in the handling of the object to object relationship is not done well, the object to object hierarchy is not clear. As cited above

Relational databases, if the tuple level object too much to consider a table object factors, or a table level

Surface object too much to consider a tuple object factors, and even to consider the element level factors, these are not good

Object-oriented design methodology. object-oriented design approach. This is something that Java has an advantage over C++ when it comes to language implementations, as it does not allow for multiple

re-inheritance, which makes the relationships between objects more explicit. No one can deny that C++ is more powerful, but it comes at a huge cost – when the code base grows to a certain level and size, the hierarchical relationships between objects will be

extremely complex, making it very difficult for subsequent users to learn and understand.

This makes it difficult for subsequent users to learn, understand, and apply the code. In addition, although

C++ has object-oriented processing capabilities, it still retains a lot of process-oriented things. It’s perfectly possible to program in C++ without

Object-oriented thinking, but of course people don’t go there – except for those who just see C++ as C

The point isn’t nearly enough. It’s the people who do the development, and the development methodology is determined by the people. To apply object-oriented methods to develop great

software, developers must be required to have a good object-oriented mindset. A good engineer can develop

great software with the right tools – not caring about the language tools he uses – Java, C++, ObjectPascal, Ada, etc.

To be able to apply object-oriented thinking to do a good job of system analysis, design, implementation (programming), first of all, require the developer

staff know what is the object, what is the concept of object-oriented, otherwise there is no way to talk about the application of object-oriented thinking to engage in software development

. I hope that readers can see me in the front of the less rigorous, detailed discussion of the concept of “object” by a

a preliminary understanding, but also hope that there are different views of peers to criticize. Secondly, the developer is also required to have a relatively rich development

Development experience. Otherwise, we can’t really understand the meaning of “object-oriented” just by talking about theory. Nevertheless, we can

set general rules. Leaving aside the other phases of the life cycle, an established system can generally be carried out in the following

Processes:

First, the first application of object-oriented thinking for system analysis. Carefully divide the various parts of the system, clarify the hierarchical relationship between it

and then analyze each part as an object functionally. For example, to design a user

user interface, it may be composed of several major forms: the main form MainFrame, functional subforms FunctionFrame

and the dialog box Dialog. where the MainFrame may also include menus, toolbars, text boxes. status bars, etc.

The main form may also include a dialog box, a dialog box, and a dialog box, StatusBar, and other

Windows components. For the components that have to fulfill some important functions, we can treat it as a separate object and represent it in a separate class in the

specific implementation. And some components that are not very important and are just needed in the process

Components can be integrated into other objects. Be clear about each object’s own task – don’t let it be flawed,

and don’t demise it. Relationships between objects are realized through coupling of processes, content, functions, etc.

In fact, if you’re developing in Java, you’ll find that swing components work very well on their own, because the relationships between them

are very well defined — you don’t have to understand the complexity of separating them like you would with components in C++. This is what you need to aim for when developing your own

components.

Secondly, the next time you apply object-oriented thinking to system design. In fact, after a really good job of analyzing the system,

design is relatively easy. During this time it is just a matter of further defining the functions of the various objects and the relationships between them

. In order to better help implementers understand the relationships between objects, there are tools that can be used to represent the relationships of these components

The UniformedMoleLanguage (UML) is a good example of this

. Not only does it help developers understand the system now, but it also provides an archive file for future maintenance,

providing great convenience for future work.

Object-Oriented Programming

ObjectOriented Programming (OOP) is a computer programming architecture.One of the basic principles of OOP is that a computer program is a combination of individual units or objects that can act as subroutines.OOP meets the three main goals of software engineering : reusability, flexibility, and extensibility. In order to realize the overall operation, each object is able to receive information, process data, and send messages to other objects.

The main concepts in object-oriented programming include: objects, classes, data abstraction, inheritance, dynamic binding, data encapsulation, polymorphism, and message passing. Through these concepts object-oriented ideas are concretely embodied.