Monday, September 27, 2010

Object-oriented programming concepts and guidelines



Object-Oriented Programming (OPP) is a programming language model, it is organized around "objects", rather than around the "behavior"; around the data, rather than logic. In the past, a program seen as a logical process to receive input on the input value processing, and then produce an output value. How to write program logic be regarded as challenges, rather than how to define the data. Object-oriented programming with the view that we are really concerned about is to operate the object, not the object of logic operation. Include a range of objects, ranging from human (with name, address, description, etc.), down to the building and the floor (all the attributes to describe and manage the objects, or even your computer desktop widgets (such as buttons and scroll bars) .

OOP in the first step is to define the action you want all the objects and how to establish links between them, the most common application is data modeling. Once you define an object, you use an object class to summarize it (imagine Plato's "ideal state" concept, the chair on behalf of all the chairs, which means that each class of things has its common characteristics), define it contains data type and any logic to operate its program. The logic of each different procedure is considered a method. Real instance of a class is called (it was no surprise) an "object", or in some environments is called an "instance of the class." Object or class instance is what you want to run on your computer. It means providing computer instructions to provide the corresponding data object properties. You and the object communication - the object were to communicate with each other - with clearly defined interfaces called messages.

Object-oriented programming concepts and criteria used to bring the following important benefits:

The concept of data type definition of data objects makes it possible subclasses, which subclasses can share some or all of the parent class attributes. As inheritance, OOP, this feature increased the thoroughness of data analysis, reduce development time and improve coding accuracy.

As a class only defines the data it needs to involve, as an instance of the class (an object) at run time, the code will not accidentally access other program data. The data hiding features to enhance the system security and data to avoid unintentional contamination.

The definition of a class is not only the initial re-create its procedures, and by other process-oriented reuse (in view of this reason, the network distributed applications much easier)

The concept of data classes allows a programmer to create any of the language has not yet been detailed in the new data types. The first one object-oriented computer language called Smalltalk. C + + and Java is now the most popular object-oriented language. Java programming language to corporate network and the Internet specifically designed for distributed applications.







Recommended links:



Hopson Zhu Meng v. United States, according to the country involved?



Across threads in C # Winform control access



guangzhou 2010 asian games winning software



DVR-MS To MPEG



QuickTime to MPEG



MKV To Xbox 360



Find driving force BEHIND IPv6



Improvement of the current financial report



Articles about CATALOGING



Recommend Audio Players



Easy to use Mathematics Education



Epson ink cartridge patent new alternative to the situation of domestic supplies of unknown



Third Eye training



Top SHELL Tools



Zhou Chengyu Court hematemesis: die in the end to fight a lawsuit



Thunder has more than 100 million users targeting NASDAQ



No comments:

Post a Comment