Overlay of Java Subclass Parent Attributes
class ParentClass {
public int i = 10;
}
public class SubClass extends ParentClass {
public int i = 30;
public static void main(String[] args) {
ParentClass parentClass = new SubClass();
SubClass subClass = new SubClass();
System.out.println(parentClass.i + subClass.i);
} ...
Posted by cesar_ser on Fri, 05 Jul 2019 22:44:37 +0200
Learning Notes 4 (Summary of Internal Classes)
Internal classes are not very well understood, but in fact, one class contains another class.
Just as a person is made up of the brain, limbs, organs and other body results, the internal class is equivalent to one of the organs, such as the heart: it also has its own attributes and behavior (blood, beating).
Obviously, instead of unilaterally ...
Posted by gregchet on Thu, 04 Jul 2019 23:20:27 +0200
Declarations and permissions
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.scott.phone"
android:versionCode="1"
android:versionName="1.0">
<!-- Declare a privilege -->
<permission android:protectionLevel="normal" ...
Posted by enygma on Thu, 04 Jul 2019 23:04:56 +0200
XML for File Processing--DOM Approach
For several ways to parse XML, you can go to someone else's blog. Here we show examples of how to generate and parse XML using DOM, SAX and DOM4J. Four ways to generate and parse XML documents (introduction + pros and cons + examples)
Generate xml as DOM:
public static void DomCreateXml() throws Exception {
// 1. Create an object f ...
Posted by thirdeye on Thu, 04 Jul 2019 18:18:14 +0200
javaee file upload and download operations
File upload and download are often used in R&D. Here I will summarize the steps of file upload and download.
1: Create a new web project and import two jia packages.If you don't have jar packages, please download them online.
2: Write forms on the web interface
Contains file file file fields
The form must be submitted as a post ...
Posted by dmrn on Thu, 04 Jul 2019 03:01:48 +0200
Simulated implementation of JavaScript in-depth new
new
In one sentence, introduce new:
The new operator creates an instance of a user-defined object type or of one of the built-in object types that has a constructor function.
Still from MDN, the reason why the Chinese version is not used is that the translation is not understood...
Let's translate this sentence ourselves:
The new operator creat ...
Posted by cljones81 on Thu, 04 Jul 2019 02:30:47 +0200
Kubernetes 1.6 New Feature Learning: RBAC Authorization
Summary
The access control process of API Server in Kuberntes is illustrated as follows:
In Kubernetes, authorization is a step after authentication. Authorization is to determine whether a user (ordinary user or Service Account) has the right to request the Kubernetes API to do something.
Previously, the authorization strategy i ...
Posted by morris520 on Wed, 03 Jul 2019 21:44:48 +0200
[MyBatis Source Analysis] Configuration Loading (Part II)
Element Settings
Continue MyBatis Configuration loading source code analysis:
1 private void parseConfiguration(XNode root) {
2 try {
3 Properties settings = settingsAsPropertiess(root.evalNode("settings"));
4 //issue #117 read properties first
5 propertiesElement(root.evalNode("properties"));
6 loadCustomVfs( ...
Posted by andrests on Tue, 02 Jul 2019 22:23:21 +0200
ScrollView in react native
1. Introduction to ScrollView (official explanation): ScrollView is a general scrollable container in which you can put multiple components and views, and these components do not need to be of the same type. ScrollView can not only scroll vertically (default), but also horizontally (set by the horizontal attribute).
2. ScrollView common attr ...
Posted by Dragoa on Tue, 02 Jul 2019 21:27:35 +0200
Vue2.1.7 Source Learning (I)
The title of the original article is "Source Code Analysis", but later on, I think it is appropriate to use "source code learning". Before I have a thorough grasp of each letter in the source code, "parsing" is a bit of a headline party. It is suggested that before reading this article, it is better to open the sou ...
Posted by skroks609 on Mon, 01 Jul 2019 22:10:35 +0200