Tag:base class

  • Flutter DIO secondary packaging

    Time:2021-6-24

    catalog: Diomanager: DIO helper classNwmethod: request method, get, post, etcNwapi: you all know thatEntityfactory: JSON transforms the auxiliary factory to tBaseentity < T >: data base class. The returned parameters are {“code”: 0, “message”: “,” data “: {}}Baselistentity < T >: data base class 2, the returned parameters are {“code”: 0, “message”: “,” data “: […]

  • Parameter verification of flash development skills

    Time:2021-6-21

    Parameter verification of flash development skills catalogue Parameter verification of flash development skills 1. Request parameter classification 2. Libraries used by the solution 3. For URL query parameters and general JSON format 4. For complex JSON format data I usually use in the development, or learn some flash development skills, need to have a solid […]

  • Django 1.8 official document translation: 2-1-1 model syntax

    Time:2021-6-17

    Model Models are the only authoritative source of information for your data. It contains the necessary fields and behaviors for the data you store. Generally, each model corresponds to a unique table in the database. Basics: Every model isdjango.db.models.ModelA python subclass of. Each attribute of the model represents a field in the database. Django provides […]

  • Django 1.8 official document translation: 2-1-1 model syntax

    Time:2021-6-16

    Model Models are the only authoritative source of information for your data. It contains the necessary fields and behaviors for the data you store. Generally, each model corresponds to a unique table in the database. Basics: Every model isdjango.db.models.ModelA python subclass of. Each attribute of the model represents a field in the database. Django provides […]

  • C + + object oriented: C + + polymorphism

    Time:2021-6-9

        ​ Polymorphism literally means multiple forms. Polymorphism is used when there is a hierarchy between classes and classes are associated by inheritance. C + + polymorphism means that when a member function is called, different functions will be executed according to the type of the object calling the function. Xiaobian recommends a Clanguage/C++My […]

  • C + + entry to mastery: Inheritance and derivation in object oriented programming!

    Time:2021-5-31

    Object oriented programming has four main characteristics: abstraction, encapsulation, inheritance and polymorphism. This chapter mainly introduces the knowledge about inheritance, and polymorphism will be explained in the following chapters. Inheritance is the most important feature of object-oriented programming. It can be said that if we do not grasp the inheritance, we do not grasp the […]

  • Talking about the exception mechanism of Java

    Time:2021-4-1

    Abstract:Java exception refers to some errors that may occur when the program is running, such as: file cannot be found, network connection failure, illegal parameters, etc. An exception is an event that occurs during the running of a program and interrupts the normal instruction flow of the executing program. This article is shared by breakdraw, […]

  • C + + object oriented: C + + interface (abstract class)

    Time:2021-3-16

    Interfaces describe the behavior and function of a class without the need to complete a specific implementation of the class.   The C + + interface usesabstract classData abstraction is a concept that separates implementation details from related data. If at least one function in a class is declared as a pure virtual function, the […]

  • Const_ cast,static_ cast, dynamic_ cast, reinterpret_ cast

    Time:2021-3-4

    const_ Cast: used to convert const variables to non const variables int n = 5; int *k1 = const_ Cast (& n); // pointer *k1 = 1; int &k2 = const_ Cast (n); // reference k2 = 2; const int a = 10; int* b = const_cast(&a); *B = 11; // the attribute of pointer […]

  • Python exception handling

    Time:2021-3-3

    Distinguish exception from syntax error When writing Python programs, errors are often reported. There are usually two kinds of errors: Syntax error:Some grammatical errors are exceptions Exception syntax error Syntax error, also known as parsing error, is one of the most common errors In [1]: while True print(‘Hello!’) File “<ipython-input-1-5c66e4fd0ae9>”, line 1 while True print(‘Hello!’) […]

  • C + + basic knowledge conclusion

    Time:2021-2-26

    On constant member functions: Const double function() and double function() const; many people may confuse them, but they are not exactly the same. The former is to ensure that the returned value is the constant (Note: variable cannot be changed), the latter is to require that your function does not involve changing the value of […]

  • Interview Series C + + object layout

    Time:2021-1-25

    We all know that C + + polymorphism is realized through the virtual function table. What is the specific type? Do you know? At the beginning, several questions are still raised What is the layout of common class objects? What is the layout of class objects with virtual functions? What is the layout of class […]