1. Web Service
We have at least two answers to this question. On the surface, Web Service is an application that exposes an API that can be called through the Web. That is to say, you can use a programming method to call this application through the Web. We call the Web service application a customer. For example, if you want to create a web service, its function is to return the current weather conditions. Then you can create an ASP page, which accepts the zip code as the query string, and then returns a string separated by commas, containing the current temperature and weather. To call this ASP page, the client needs to send the following http get request
2. Object-oriented
Definition: first, the business objects are abstracted according to the customer's needs. Then, the requirements are reasonably layered to build relatively independent business modules. Then, the business logic is designed, use the multi-state, inherited, encapsulated, and abstract programming ideas to achieve business needs. Finally, by integrating various modules, the high cohesion and low coupling effects can be achieved to meet customer requirements. Determine the specific requirements of object-oriented concepts and have their respective understandings.
(1) object. Objects are all things that people need to study. From the simplest integer to the complex aircraft, they can be regarded as objects. They can not only represent specific things, it can also represent abstract rules, plans, or events.
(2) Status and behavior of the object. An object has a state, and a data value is used to describe its State. The object also has operations to change the object state. The object and its operations are the behavior of the object. Objects combine data and operations to encapsulate data and operations in the unity of objects.
(3) class. Objects with the same features (data elements) and behavior (functions) are abstracted as classes. Therefore, the object is abstracted as a class, and the class is embodied as an object. It can also be said that the instance of the class is an object, and the class is actually a data type. A class has attributes. It is an abstraction of the object state and describes the attributes of a class using a data structure. The class has operations. It is the abstraction of the object's behavior. It is described by the Operation name and the method to implement this operation.
(4) Structure of the class. There are several classes in the objective world, which have some structural relationships. There are usually two main structural relationships: general-specific structural relationships, and overall-partial structural relationships. ① General: the specific structure is called the classification structure. It can also be called the "or" relation, or the "is a" link. ② Whole-some structures are called assembly structures, and the relationship between them is a kind of "and" relationship, or "has a" relationship.
Producer messages and methods. The structure for communication between objects is called message. In an object operation, when a message is sent to an object, the message contains the information of the recipient performing an operation. To send a message, you must at least specify the name of the object that receives the message and the name of the message sent to the object (that is, the object name and method name ). It is also necessary to describe the parameters. The parameters can be the names of variables known to the objects that know the message, or the names of global variables that all objects know. The implementation process of operations in a class is called a method. A method includes the method name, return value, parameter, and method body.
Feature: (1) object uniqueness. Each object has its own unique identifier. Through this identifier, you can find the corresponding object. During the entire lifecycle of an object, its identifier remains unchanged. Different objects cannot have the same identifier.
(2) abstraction. Abstraction refers to abstracting objects with consistent data structures (attributes) and actions (Operations) into classes. A class is such an abstraction, which reflects the important properties related to the application and ignores other irrelevant content. The division of any class is subjective, but it must be related to specific applications.
(3) inheritance. Inheritance is the mechanism by which child classes automatically share parent class data structures and methods. This is a relationship between classes. When defining and implementing a class, you can base on an existing class and take the content defined by this existing class as your own content, and add some new content.
(4) polymorphism refers to the same operation or function and process that can act on multiple types of objects and obtain different results. Different objects receive the same message to produce different results. This phenomenon is called polymorphism. Polymorphism allows each object to respond to common messages in a suitable way. Polymorphism enhances software flexibility and reusability.
Detailed: http://baike.baidu.com/view/125370.htm#4