Java object orientation: the ultimate training of interfaces

Problem description There are four roles as follows. The attributes and behaviors of these roles are Stock investors: name, age, study stock speculation, speak English Fund Investor: name, age, study and speculation Stock Manager: name, age, teaching stock trading, speaking English Fund manager: name, age, teaching and speculation base Pl ...

Posted by ballhogjoni on Tue, 09 Aug 2022 21:47:12 +0300

Encapsulation, inheritance and polymorphism of java

encapsulation Characteristics of encapsulation: data can only be accessed through specified methods.Hide the instance details of the class to facilitate modification and implementation.Specific practical steps of packaging Modify the visibility of attributes to restrict access to attributes, which is generally set to private.Create a pa ...

Posted by zz50 on Tue, 09 Aug 2022 21:33:18 +0300

[uiautomation] wechat friend list acquisition (stored in txt)

??? ?? Blog homepage: **** ?? Series column: uiautomation ?? Welcome to like?? Comments?? I love python and look forward to growing up with you!! Purpose: use uiautomation to get wechat friends and store them in txt files. catalogue 1, Foreword 2, Specific steps Module import Open wechat Enter address book management Locate ...

Posted by lizzyd on Tue, 09 Aug 2022 13:03:39 +0300

Using ESP32 to construct a ZIGBEE network transmission and transfer

Introduction: Using the networking function of ESP32, a serial port module of WiFi UDP to Zigbee is constructed. This module only sends UDP instructions to Zigbee's network, which replaces the original function. Note that the network address of ESP32 is 192.168.0.114. How can I get the IP address of ESP32? You can intervene in the 192 ...

Posted by roninblade on Tue, 09 Aug 2022 12:20:46 +0300

Javac compilation custom annotation and analysis annotation implementation of Lombok

1, Ask questions with Lombok 1.1 INTRODUCTION 1. Open settings (shortcut key: ctrl+alt+s) in idea, search plugin, search lombok in plugins, and install 2. Introduce lombok dependencies into the project <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version&gt ...

Posted by jf3000 on Tue, 09 Aug 2022 11:59:23 +0300

Cannot find name for React error

Text starts here~.tsx extensionIn order to resolve Cannot find name errors in React TypeScript, we need to use the.tsx extension when using JSX files, in your tsconfig. Set JSX to react-jsx in the JSON file and make sure that all necessary @types packages are installed for your application.Below is an example of an error in a file named App.ts. ...

Posted by jackread on Sun, 07 Aug 2022 21:57:26 +0300

CSS Core Properties

Catalog 1. Font Properties 1.1 Font Size 1.2 Font Style 1.3 Set line height 1.4 Font Tilt Compound Writing of 1.5 font 2. Text Attributes 2.1 Font Color 2.2 Retrieve or set the case of text in an object 2.3 Text Alignment 2.4 Text Modification 2.5 first line indentation 2.6 Word Spacing 2.7 Word Spacing 3. List Attributes 3.1 ...

Posted by Matt Kindig on Sun, 07 Aug 2022 21:42:26 +0300

[dynamic programming] monotonic queue optimization DP

Monotonic queue optimization DP Maximum subsequence sum Source: https://www.acwing.com/problem/content/137/ Title Description Enter a length of n n An integer sequence of n, from which a length of no more than m ...

Posted by FlashbackJon on Sun, 07 Aug 2022 21:36:46 +0300

MySQL advanced - six index optimization

Database optimization scheme Index failure, insufficient use of index: index establishmentToo many JOIN (design defects or unavoidable requirements) associated queries: SQL optimizationToo much data: sub database and sub tableServer tuning / optimization and various parameter settings (buffer, number of threads, etc.): adjust my.cnf Performan ...

Posted by tanita on Sat, 06 Aug 2022 21:43:39 +0300

2022/07/29 jisoft Java Foundation (14) exception handling

1, What is exception handling Exception handling is also called exception handling. There are two purposes to deal with exceptions in the program, one is to find the exceptions in the program, and the other is to operate the exceptions relatively or notify the programmer to modify them. Using the try catch statement can accomplish these two pur ...

Posted by bothwell on Sat, 06 Aug 2022 21:26:11 +0300