The volleyball scoring software for MVC combat (in-depth understanding of object-oriented programming)

Source: Internet
Author: User

Before this blog post, I have written a real-life series of blogs, although not too mature but relatively practical, in this blog I will continue to use MVC programming this software.

This blog will be completed within a certain period of time, the completion of the software is a need to provide athletes with the use. I will finish writing this blog within one months,

and the implementation of software functions.

Before we start programming the software, let's look at the object-oriented language and object-oriented programming first:

Object-oriented languageThe concepts of object-oriented language support include: Class and object, inheritance, polymorphism. The object-oriented language is part of the newly invented language, such as Smalltalk, Java, these languages themselves tend to absorb the essence of other languages, and try to remove their shortcomings, so the object-oriented features are particularly obvious, full of vitality, others are the existing language to transform, Increases the evolution of object-oriented features. As the object Pascal developed by Pascal, Objective-c,c++, developed by C, Ada 95, developed by Ada, retains compatibility with the original language and is not a purely object-oriented language. But because its predecessor often has the certain influence language, therefore these languages still baodaobulao, occupies the very important position in the programming language.

Object-Oriented programming :

Object-oriented programming (object Oriented Programming,oop, OO programming) is a computer programming architecture. One of the basic principles of OOP is to calculate

A machine program is a combination of a single unit or object that can act as a subroutine. OOP achieves the three main goals of software engineering: reusability, flexibility, and extensibility. For

The implementation of the overall operation, each object can receive information, process data and send information to other objects.

Object-oriented key features:Encapsulation: Encapsulation is an information concealment technique, which is embodied in the description of the class and is an important feature of the object. Encapsulation makes the data and the method (function) of processing the data encapsulated as a whole, in order to achieve a very independent module, so that the user can only see the external characteristics of the object (the object can accept which messages, with those processing power), and the object's internal characteristics (the preservation of the internal state of private data and the implementation of processing capacity algorithm) is The purpose of encapsulation is to separate the designer of the object from the user of the object, and the user does not have to know the details of the behavior implementation, but only accesses the object with the message provided by the designer. Inheritance: Inheritance is the mechanism by which subclasses automatically share data and methods between parent classes. It is represented by the derivation function of the class. A class inherits all the descriptions of other classes directly, and can be modified and expanded. Inheritance has transitivity. Inheritance is divided into single inheritance (a subclass has only one parent class) and multiple inheritance (a class has more than one parent class). The objects of the class are closed, and if there is no inheritance mechanism, the data and methods in the class object will be duplicated a lot. Inheritance not only supports the reusability of systems, but also facilitates the extensibility of the system. Polymorphism: objects are acting according to the messages they receive. When the same message is accepted for different objects, it can produce completely different actions, known as polymorphism. The use of polymorphic users can send a common message, and all implementation details are left to the object receiving the message, so the same message can invoke different methods. For example, the printing method that is called when the print message is sent to a graph or table is completely different from the printing method that is called when the same print message is sent to a body file. The implementation of polymorphism is supported by inheritance, with the hierarchical relationship of class inheritance, the protocol with common function is stored at the highest level of class, and the different methods of implementing this function are placed at a lower level, so that the objects generated at these low levels can respond differently to generic messages. Polymorphism can be achieved in OOPL by redefining a base class function (defined as an overloaded function or virtual function) in a derived class. (The above is the content of the Baidu Encyclopedia, you can make us more aware of the face to the image). Knowing about object-oriented programming, I'm going to finish making and programming the software:

The volleyball scoring software for MVC combat (in-depth understanding of object-oriented programming)

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.