Object-Oriented Programming (Chapter Summary), object-oriented programming chapter

Source: Internet
Author: User

Object-Oriented Programming (Chapter Summary), object-oriented programming chapter
1. Object-oriented has three main features: encapsulation, inheritance, and polymorphism.


2. If a class drug settings inherit, you must specify NOTFINAL; otherwise, this class cannot be inherited.


3. to sort the queried data, you can use MAP or ORDER to define a function.


4. In a class, the default CONSTRUCTOR needs to pass all the attribute content. If you need it, you can use CONSTRUCTOR to define the CONSTRUCTOR for parameter formulation.


5. In object orientation, the Child class can be instantiated as the parent class. In this way, the function called by each parent class object will implement different functions based on the override of the Child class of this function.


6. A class can use not instantiable to define an abstract function. The class where an abstract function is located is called an abstract class. When an abstract class is inherited, The subclass must use OVERRIDING to override the function.


7. You can create a data table based on the specified class. In this way, fields in the table are attributes in the class.


8. Through the object view, data in a data table can be directly returned as a class object.
What Is Object-Oriented Programming?

Object-Oriented Programming (OOP) is a simulation language that originated in 1960s and has been developed for nearly thirty years. Its own theories have been well developed and implemented by multiple object-oriented Programming languages (OOPL. If the Unix system is regarded as the Cultural Foundation of foreign systems and software, the Smalltalk language will undoubtedly share the same position in the OOPL field and Unix field. For many reasons, most program designers in China do not have deep OOP and OOPL theories. Many people have been familiar with c/c ++ and java for many years, vb, delphi, and other static types of languages, but little is known about pure OOP ideas, Smalltalk, and dynamic types of languages as the foundation of OOPL, I don't know, there are some programming languages in the world that can not bind types to variables. These comparisons are an important part of a profound understanding of OO theory, and there are only a few materials in China. Therefore, write down some of your OO learning experiences as a series of articles (three articles in total, the first one describes some basic but easy to misunderstand theories of OOP, the second part mainly describes the evolution and development of various OOPL and the support for OOP theories. The third part mainly describes the position of models and components in OOP and prospects for the future of OOP ), as the article only describes your understanding of OOP/OOPL, errors and limitations are inevitable, but I hope it will be helpful to everyone.
Reference: baike.baidu.com/view/10110.htm? Fr = ala0_1

Book: electronic version of Visual C # NET Object-Oriented Programming Tutorial

Download.chinaitlab.com/program/files/9130.html

Related Article

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.