Inheritance of C# class
Inheritance of C# class
1. Parent and child classes (base and derived classes)
In the inheritance of a class, the inherited class is called the base class (mentioned with the derived class) or the parent class (mentioned with the subclass), and the inherited class is called the derived class or subclass. The subclass inherits the properties a ...
Added by twister47 on Sun, 06 Mar 2022 17:29:39 +0200
Build springboot based backend project 1 from 0
idea will build the springboot project in the next step First, create a new project Select name shoulder Language: java Type: Mavan
First, import some common dependencies for testing
After the project is built, the initial directory structure is as follows . idea is the configuration of idea, regardless We mainly write various codes in src ...
Added by mark_kccs on Sun, 06 Mar 2022 17:18:03 +0200
fmt in Golang standard library
fmt in Golang standard library
fmt package implements formatted I/O similar to C language printf and scanf. It is mainly divided into two parts: output content and obtain input content.
1. Outward output
The standard library fmt provides the following output correlation functions.
Print
Print series functions will output the content to the ...
Added by keeve on Sun, 06 Mar 2022 17:15:37 +0200
JavaScript form validation
Preface: the form verification we talked about this time uses the contents of the previous articles, which is more difficult than the previous ones. I will explain it in detail in the form of comments in the code.
catalogue
I Simple form validation
Verification method 1:
Verification method 2:
II Regular verification
I Regular rules
Cont ...
Added by gameshints on Sun, 06 Mar 2022 17:13:17 +0200
"LeetCode" game 73 biweekly solution
6024. The number that appears most frequently immediately after the key in the array
Code
class Solution {
public:
int mostFrequent(vector<int>& nums, int key) {
int n = nums.size();
int ans = 0;
unordered_map<int, int> mp;
for (int i = 0; i <= n - 2; i++) {
/* Count the numbe ...
Added by MLJJ on Sun, 06 Mar 2022 17:01:08 +0200
CH9 network programming
target
Understand the introduction of HTTP protocol communication, and be able to say what is HTTP protocolMaster the usage of HttpURLConnection and be able to use HttpURLConnection to access the networkMaster the use of WebView control, and be able to use WebView control to load different web pagesMaster the parsing of JSON data and be ab ...
Added by dhimok on Sun, 06 Mar 2022 16:59:06 +0200
muduo note log Library
muduo log library is an asynchronous high-performance log library. Its performance cost is about 1.0us~1.6us for each log message written by the front end.
Log base model
double buffering interaction technology is adopted. The basic idea is to prepare two parts of buffer: A and B. the front end thread fills buffer A with data (log messages), ...
Added by MrCool on Sun, 06 Mar 2022 16:54:30 +0200
Roll it up and take you to write a distributed RPC framework that middle and senior programmers will know
I summary
What is RPC?
Remote service callOfficial: the idea of requesting services from remote computer programs through the network without understanding the underlying network technologyA little more popular: without knowing the details of the call, the client calls an object that exists on the remote computer, just like calling an objec ...
Added by donald on Sun, 06 Mar 2022 16:46:07 +0200
Interview question: why should String be modified with final? What are the benefits
1. First answer why
To ensure the immutability of String objects
2. How does final ensure the immutability of String objects?
To answer this question, you must first know the function of final:
The class decorated by final cannot be inheritedThe reference of final modification cannot be re assigned after initializationThe method of final mo ...
Added by daneth1712 on Sun, 06 Mar 2022 16:44:21 +0200
The 32nd day of learning big data - cycle and date
The 32nd day of learning big data - cycle and date
for loop
Format 1:
for((i=1;i<=j;i++))
do
Circulatory body
done
Format 2:
for i in {start position... End position} # there are two points in the middle
do
Circulatory body
done
Format 3:
for i in $(seq end position)
do
Circulatory body
done
For ...
Added by fatfrank on Sun, 06 Mar 2022 16:39:34 +0200