Golang Reflex - Next

This article is Golang Reflex - Previous The sequel to this article focuses on some uses of reflective reality 1. Judgment Type interface.Type The usage of type assertions to determine data types is as follows package main import "fmt" func main() { var s interface{} = "abc" switch s.(type) { case string: fmt.Println("s.type=string") ...

Posted by blckspder on Tue, 23 Nov 2021 10:43:15 -0800

Java Experiment 3: Inheritance and polymorphism

1, Height and weight problems of different nationalities Write a program to simulate that Chinese and Americans are human; Beijingers are Chinese. In addition to the main class, there are four classes in the program: People, ChinaPeople, American People and Beijing People. The requirements are as follows: (1) The People class has protected ...

Posted by Bizzle on Tue, 23 Nov 2021 10:42:09 -0800

Java-Hot Load Implementation

What is hot loading Hot loading means that you can make the changes take effect without restarting the service. Hot loading can significantly improve the efficiency of development and debugging. It is implemented by a Java-based class loader, but *** is not normally used in a formal production environment because of the insecurity of hot ...

Posted by jmcc on Tue, 23 Nov 2021 10:41:54 -0800

Twelve: Enumeration and Annotation

-------- Statement: This article was modified on the basis of an original article by CSDN blogger "lsqstudy", following the CC 4.0 BY-SA copyright agreement Original Link: https://blog.csdn.net/PorkBird/article/details/113666542 01, Enumeration Classes 1.0, Overview of Enumerated Classes 1. The number of objects in a class is finite a ...

Posted by ade1982 on Tue, 23 Nov 2021 10:33:50 -0800

[JavaSE series] Java object-oriented composition polymorphism and interface

⭐ ♪ previous words ⭐ ️ This article introduces you to the basic knowledge of Java - composition, polymorphism and interface, friends, long time no see, question A left to readers in the previous blog post package and inheritance. This article will introduce polymorphism and interfaces in detail. The inheritance introduced last time is the ba ...

Posted by LucienFB on Tue, 23 Nov 2021 10:30:33 -0800

Sort out and summarize the relevant knowledge of String class

The difference and relation between String and charchar is the basic data type and character type; definition char You must use single quotes when you type variables'',And can only have one character; char It occupies 2 bytes and adopts 16 bits Unicode Character (i.e UTF16)Code, indicating range: 0~65535;A Chinese occupies 2 bytes, so char O ...

Posted by Simmo on Tue, 23 Nov 2021 10:19:57 -0800

Configuration instructions for eslint+prettier+husky

One, eslint Eslint specifies code that is syntactically biased. This article describes the eslint+prettier+husky configuration project code specification as a basic vue project. To better describe this article, I restored the default settings for vscode (i.e. no eslint,prettier plug-ins are installed, and no configuration is available in setti ...

Posted by Tomz on Tue, 23 Nov 2021 10:03:06 -0800

WPF Series Tutorial: Content Controls

This section focuses on the Content control's Content property. Project Source Content properties can be set directly in the control <Button x:Name="button" Content="Button" Height="49"/> You can also use pictures. <Button> <Image Source="/edbcb5485f9ac954.jpg" Width="100" Height="30"> </Image> </Button&g ...

Posted by lukevrn on Tue, 23 Nov 2021 09:55:44 -0800

Vivid image explaining the difference between forEach, filter, map, some, every, find, findIndex, reduce

1. Overview From the first for-loop traversal method to the endless variety of traversal methods that have emerged since then, the biggest difference is the difference in the application scenario. The most important thing we need to remember is which method is appropriate under what circumstances. 2. Analysis Here is a pile of potatoes. If ...

Posted by e_00_3 on Tue, 23 Nov 2021 09:53:30 -0800

Time complexity

Time complexity: the time complexity of an algorithm is a function that qualitatively describes the running time of the algorithm. This is a function representing the length of the string of the input value of the algorithm. The time complexity is usually expressed by large O sign, excluding the low-order term and first term coefficient of this ...

Posted by predhtz on Tue, 23 Nov 2021 09:06:17 -0800