C + + -- classes and objects
Class declaration
Class is the keyword that defines the class, ClassName is the class name, and {} is the body of the class. Note that the semicolon is followed at the end of class definition.
class ClassName{
//The body of a class is composed of member functions and member variables
};
Class members include:
Member variableMember f ...
Added by supinum on Sun, 06 Feb 2022 23:16:46 +0200
c + + operator overloading ------------- 1 plus operator overloading
1 plus operator overload:
1.1 / / member function implementation + operator overload
Implementation statement:
Person operator+( Person& p)//Pass in a new parameter and add it to the previous one.
{//There is no calling relationship. Implicit relationship.
Person temp;
temp.m_A = this->m_A + p.m_A;
temp.m_B = this->m_B + p.m_B;
...
Added by s3rg1o on Sun, 06 Feb 2022 22:41:51 +0200
Interpretation of Spring boot startup source code
catalogue
preface
Preparation before chasing source code
text
Explanation of notes
Start process source code analysis
Rough model diagram of Spring boot startup
summary
Course recommendation (free)
preface
In the last post, I introduced my friends to Spring boot and built a hello world project with Spring boot. I also raised the qu ...
Added by sfarid on Sun, 06 Feb 2022 21:06:34 +0200
Java library management system
Java library management system
β‘ Preface β‘ οΈ
After reading this column, you can summarize the knowledge you have learned from the main application of Java, and hope to deepen your knowledge after reading this column.
π Blog home page: π [warm the sun like the wind]π π Boutique Java column [Javase],[Java data structure] π Welcome to ...
Added by 25lez25 on Sun, 06 Feb 2022 21:02:24 +0200
java learning notes fourth week
catalogue
1, Common class
1. Packaging
1.1 initial knowledge of packaging
1.2 purpose of packaging
1.3 use of packaging
1.4 automatic packing and unpacking
1.5 caching of packaging
2. String related classes
2.1 source code analysis of string class
2.2 StringBuffer and StringBuilder
2.3 common methods of StringBuilder (key points)
3. ...
Added by ppowell on Sun, 06 Feb 2022 19:42:40 +0200
[C + +] object oriented polymorphism
6.1 overview
When a command is issued, different objects make different actions after receiving the same command.
Strictly speaking: the same object receives different messages, or different objects produce different actions when they receive the same message.
6.2 virtual function machine implementation principle
6.2.1 static polymorphi ...
Added by Joseph Sliker on Sun, 06 Feb 2022 11:02:17 +0200
java based object-oriented, encapsulation overview
Freshman rookie is learning java by himself. If there are mistakes in the article, welcome to exchange and correct them and make common progress! π΅π΅π΅
I Object oriented overview
Object oriented: a programming idea used in programmingObject oriented features: encapsulation, inheritance, polymorphismObject: everything is an object. I ...
Added by bios on Sun, 06 Feb 2022 10:47:31 +0200
[SSM oriented CRUD programming column 9] SSM framework integration
π« For more ssm knowledge, see SSM_ CRUD oriented programming column
π This blog summarizes from the ssm framework video of dark horse programmer
π Bloggers are still learning this knowledge
π If you find any problems, please point them out
ππZhawatai zaogao's blog home pageππ
catalogue
π case analysis
π Frame struct ...
Added by tecmeister on Sun, 06 Feb 2022 10:28:40 +0200
[JAVA exception handling | try catch, throw, throws]
abnormal
General exception code:
public class Exception01 {
public static void main(String[] args) {
int n1 = 10;
int n2 = 0;
// n1 / n2 => 10 / 0
int res = n1/n2;
System.out.println("The program continues to run");
}
}
Exception capture (try catch) is set:
public class Exception01 {
p ...
Added by Spaceman-Spiff on Sun, 06 Feb 2022 08:27:21 +0200
Java multithreading -- blocking queue -- use / tutorial / example
Original website:
brief introduction
explain
This article introduces the usage of blocking queue in Java with examples.
Queue type
There are several types of BlockingQueue: ArrayBlockingQueue, LinkedBlockingQueue, synchroousqueue, PriorityBlockingQueue, DelayedWorkQueue.
Queue typeexplainArrayBlockingQueue FIFO queue based on array; Bound ...
Added by sone_br on Sun, 06 Feb 2022 04:25:09 +0200