[C + + template] - class template

1. Class template syntax Class template function: Create a general class. The member data types in the class can be represented by a virtual type without specific formulation. Class template syntax: template<typename T> class Template - declare the creation of a template typename - the symbol behind the surface is a data type, which c ...

Added by ajmoore on Sat, 22 Jan 2022 01:44:27 +0200

Talk about the initialization of @ PostConstruct, InitializingBean, ApplicationRunner/CommandLineRunner and @ EventListener

1, Background When we start the application, we often need to do some initialization operations. At this time, we try to tangle with their execution order. In fact, what we should really care about is our requirements and when they should be executed. 2, Source code analysis In order not to state a large number of source code, only the run m ...

Added by taylormorgan on Fri, 21 Jan 2022 23:22:18 +0200

Re learn the basics of Java -- inherit CSDN creation punch in

There are thousands of people in the vast sea. Thank you for seeing here this second. I hope my interview question series can help you! Encourage each other! May you keep your love and go to the mountains and seas in the future! Java Basics (inheritance) 🍦 inherit 🍧 Introduction to inheritance Inheritance is a cornerstone of java ob ...

Added by ell0bo on Fri, 21 Jan 2022 22:47:47 +0200

C + + classes and objects -- encapsulation

https://www.bilibili.com/video/BV1et411b73Z?p=99https://www.bilibili.com/video/BV1et411b73Z?p=99 The three characteristics of C + + object-oriented are encapsulation, inheritance and polymorphism C + + believes that everything is an object, and the object has its properties and behavior For example: People can be used as objects. The attr ...

Added by potato on Fri, 21 Jan 2022 21:45:11 +0200

Exploration and practice of JDK elegant programming features

Chain programming summary JDK chain programming has the advantages of strong programmability, readability and concise code. The principle of chain programming is to return a this object, that is, to return itself to achieve the chain effect. For example, the StringBuilder of JDK is to realize the effect of chain programming. StringBuilder bu ...

Added by SalokinX on Fri, 21 Jan 2022 21:29:38 +0200

Power node Spring framework learning notes - Wang He AOP aspect oriented programming

2, AOP aspect oriented programmingOfficial download addressPower node spring dataVideo viewing addresshttps://www.bilibili.com/video/BV1nz4y1d7uy2.1 generalAOP(Aspect Orient Programming). Aspect oriented programming is to consider the program running process from a dynamic point of viewThe bottom layer of AOP is realized by dynamic agent mode. ...

Added by jasongr on Fri, 21 Jan 2022 19:00:58 +0200

Detailed notes on java BIO, NIO and AIO

BIO, NIO and AIO are not suitable for students with poor foundation. They need to be proficient in Java OOP programming, have certain programming thinking, be familiar with Java multithreading programming, Java IO stream programming, Java network programming, and be familiar with common Java design patterns Most of the people in BIO have b ...

Added by Ringo on Fri, 21 Jan 2022 17:48:01 +0200

ESP32+Python as an ultrasonic detector

We often see such a thing on the smart car. This thing is an ultrasonic ranging module with four pins: VCC, trig, echo and GND. VCC: connected to VCC power supply, generally 5V, but now there are also 3.3V power supplies on the market Trig: input a 10us high level to this pin to trigger ranging. Echo: at the end of ranging, this pin will out ...

Added by erikwebb on Fri, 21 Jan 2022 13:01:04 +0200

[embedded C language series] Pointer

Pointer Initializing pointer variables A pointer is a variable whose value is a memory address. Just as the value of a char type variable is a character, the value of an int type variable is an integer, and the value of a pointer variable is an address. To create a pointer variable, first declare the type of the pointer variable. int *pi; / ...

Added by Nameless12 on Fri, 21 Jan 2022 11:41:14 +0200

JAVA annotation and reflection 2 {reflection mechanism} JAVA starts from the foundation -- 4

Reflection mechanism +JVM explains creating objects at runtime (classLoader) Overview of java reflection mechanism Dynamic language------------------------------------------------------------------------- ◆ it is a kind of language that can change its structure at run time: for example, new functions, objects and even code can be intr ...

Added by NewfieBilko on Fri, 21 Jan 2022 11:33:50 +0200