Chapter V succession

catalogue 5.1 class, superclass and subclass 5.1.1 defining subclasses 5.1.2 coverage method 5.1.3 constructor of subclass 5.1.4 inheritance hierarchy 5.1.5 polymorphism 5.1.6 prevent inheritance: final classes and methods 5.1.7 cast type 5.1.9 abstract classes 5.1.10 protected access 5.2 Object: superclass of all classes 5.2.1 Ob ...

Posted by Zoofu on Sat, 08 Jan 2022 03:56:53 +0100

Simple calculator implemented by Java Swing

  Project introduction   MVC model   Project introduction (download at the end of the text):   Calculator window, user interface   Button monitoring and keyboard monitoring are equivalent to controllers   Data processing, equivalent to model   General idea, When the user clicks the button or presses the keyboard, the ...

Posted by anthonyw17 on Fri, 07 Jan 2022 16:07:25 +0100

Spring Cloud Gateway deadly serial 10 Q?

This article introduces an important role in microservices: gateway. As for how to select a gateway, Alibaba has not yet selected a gateway. Of course, it has chosen Spring cloud Gateway. After all, it is my son. The article contents are as follows: Why do I need a gateway? In the traditional monomer architecture, only one service is ope ...

Posted by bonaparte on Fri, 07 Jan 2022 10:35:37 +0100

Java string (unfinished)

Strings in Java are multiple characters enclosed in double quotes. Characters in Java are encoded in Unicode. If a single character is enclosed in double quotation marks, it represents a string, not a character. Java SE provides three string classes: string, StringBuffer and StringBuilder. String is an immutable string, and StringBuffer and S ...

Posted by helraizer on Fri, 07 Jan 2022 08:21:20 +0100

Redis OM .NET Redis object mapping framework

Redis OM Redis OM is an Object Mapping framework officially launched by redis, that is, Object Mapping. It allows developers to operate redis data more simply and conveniently. The data stored in redis is abstracted as Object Mapping and supports object-based redis data persistence and streaming query operations. Currently, only four developm ...

Posted by admin101 on Fri, 07 Jan 2022 08:20:33 +0100

Use mybatis plus to add, delete, modify and query the database (including logical deletion, primary key generation, optimistic lock and paging query)

CRUD insert insert should mainly focus on the processing of primary key fields by mybatis plus Primary key generation strategy Extension: common strategies for generating primary keys UUIDSelf increment IDSnowflake algorithmGenerated using redis Snowflake algorithm: The id generated by SnowFlake algorithm is a 64bit integer, which ...

Posted by bluto374 on Fri, 07 Jan 2022 07:10:11 +0100

Goland study notes

Golang study notes This article is a handy note when watching the video material Golang beginner tutorial from YouTube. It is only for auxiliary learning and review. Due to the limited level, there may be some translation errors and content errors. Criticism and correction are welcome. YouTube source: Learn Go Programming - Golang Tutorial for ...

Posted by seco on Fri, 07 Jan 2022 04:43:56 +0100

Python object-oriented student management system

chart target Understand the analysis method of class internal function in the process of object-oriented programming developmentUnderstand common functions, add, delete, modify and query I. system requirements Use the object-oriented programming idea to complete the development of student management system, as follows System requiremen ...

Posted by baudday on Fri, 07 Jan 2022 02:14:21 +0100

[JAVA] Spring Boot project development on exception class handling

1. Preface Exceptions refer to abnormal phenomena that occur during the running of a program, such as user input errors, division by zero, non-existent files to be processed, array subscripts crossing bounds, and so on. 2. Classification of Exceptions There are many exception classes defined in the JDK that correspond to a variety of possibl ...

Posted by hrichman on Thu, 06 Jan 2022 19:32:01 +0100

Branch and Loop Statements

Catalog Branch statement 1. if statement 2. switch statement Loop statement 1. while statement 2. for loop 3. do...while() loop Branch statement Definition: Statements in the code are executed in order from top to bottom. Now you need to check a condition to execute different code according to different conditions, then you need to use ...

Posted by manishsinha27 on Thu, 06 Jan 2022 18:54:26 +0100