提交 74aebad2 编写于 作者: W wizardforcel

2020-07-10 22:56:30

上级 8fee5a93
......@@ -20,7 +20,7 @@ break;
* * *
## C++ `break`语句的工作
## C++ `break`语句的原理
![Working of C++ break Statement](img/e34ec524467bae5f63fe90112095f836.png "Working of break statement in C++")
......
......@@ -71,7 +71,7 @@ class privateDerived: private base
* * *
### 公共继承中的可访问
### 公共继承中的可
| 访问性 | 私有变量 | 受保护变量 | 公共变量 |
| --- | --- | --- | --- |
......@@ -81,7 +81,7 @@ class privateDerived: private base
* * *
### 受保护继承中的可访问
### 受保护继承中的可
| 访问性 | 私有变量 | 受保护变量 | 公共变量 |
| --- | --- | --- | --- |
......@@ -91,7 +91,7 @@ class privateDerived: private base
* * *
### 私有继承中的可访问
### 私有继承中的可
| 访问性 | 私有变量 | 受保护变量 | 公共变量 |
| --- | --- | --- | --- |
......
......@@ -29,7 +29,7 @@
![How if statement works in Java?](img/d943bf283f5fb86dfb3b52e494bdee2a.png "Working of Java if statement")
Working of Java if statement
Java `if`语句的原理
......@@ -106,7 +106,7 @@ else {
![How if...else statement works in Java?](img/56c68f38a6428a68bf4bacb12149b227.png "Working of Java if-else statements")
Working of Java if-else statements
Java `if-else`语句的原理
......
......@@ -44,7 +44,7 @@ default:
![Flowchart of the Java switch statement](img/4d11f702043df31b9fb41cd25cf47730.png "Flow chart of the Java switch statement")
Flow chart of the Java switch statement
Java `switch`语句的流程图
......
......@@ -41,7 +41,7 @@ for (initialization; testExpression; update)
![Java for Loop flowchart](img/c36e9c16d8984a3e6b540c4bacc48d37.png "Working of for loop")
Working of for loop
`for`循环的原理
......
......@@ -39,7 +39,7 @@ while (testExpression) {
![Java while loop flowchart](img/30e5a661c20677c618554d900cd8601f.png "Working of while Loop")
Working of while Loop
`While`循环的原理
......
......@@ -26,7 +26,7 @@ break;
![How break statement works in Java programming?](img/8b6dddf93175bfcc760a9221b185b070.png "Working of Java break Statement")
Working of Java break Statement
Java `break`语句的原理
......@@ -136,7 +136,7 @@ if (number < 0.0) {
![The break statement terminates the innermost while loop in case of nested loops.](img/56fee848ebc71a6592db0fd2c9007b74.png "Working of break Statement with Nested Loops")
Working of break Statement with Nested Loops
带有嵌套循环的`break`语句的原理
......@@ -152,7 +152,7 @@ Working of break Statement with Nested Loops
![The labeled break statement is used to break the outermost loop.](img/171d5266b8c72bbaa191894f3cf0987f.png "Working of the labeled break statement in Java")
Working of the labeled break statement in Java
带标签的`break`语句的原理
......
......@@ -22,12 +22,11 @@ continue;
* * *
## 连续语句如何工作?
## `continue`语句如何工作?
![The continue statement is used in Java Loops (for, while, and do...while loops) to skip the current iteration of the loop.](img/13467eaab0527da1b3021f15025c836d.png "Working of Java continue statement")
Working of Java continue statement
Java `continue`语句的原理
* * *
......@@ -136,7 +135,7 @@ if (number < 0.0) {
![The continue statement skipped the current iteration of the innermost loop in case of nested loops.](img/e85a2abed9501317a557c4b7cc9accac.png "Working of the continue Statement with Nested Loops")
Working of the continue statement with Nested Loops
带有嵌套循环的`continue`语句的原理
......@@ -150,7 +149,7 @@ Working of the continue statement with Nested Loops
![The labeled continue statement is used to skip the current iteration of the outermost labeled loop.](img/ab4de94d4d765d0976fab459e36ac2ca.png "Working of the labeled continue Statement in Java")
Working of the labeled continue Statement in Java
带标签的`continue`语句的原理
......
......@@ -68,7 +68,7 @@ int[] age = new int[5];
![Java array index](img/fb0b498feca0d98ab2cef4a07f9b5f01.png "Java Array Index")
Java Array Index
Java 数组索引
......@@ -156,7 +156,7 @@ int[] age = {12, 4, 5, 2, 5};
![Elements are stored in the array](img/a4b14afa1c07858092f9f211932281db.png "Array initialization")
Java Arrays initialization
Java 数组初始化
......
......@@ -16,7 +16,7 @@ int[][] a = new int[3][4];
![2-dimensional array in Java](img/c46b2ff7c300432581a0faacd07f2f36.png "2-dimensional Array")
2-dimensional Array
二维数组
......@@ -48,7 +48,7 @@ int[][] a = {
![2d array example in Java with variable length](img/8d2520cbfa1deb81d3e6f4ee15416fd4.png "Initialization of 2-dimensional Array")
Initialization of 2-dimensional Array
二维数组的初始化
......
......@@ -132,7 +132,7 @@ l1.turnOn();
![How methods work in Java?](img/5c2b6e65098d3536292a2a716f96985c.png "Working of Methods in Java")
Working of Methods in Java
Java 中的方法的原理
......
......@@ -120,7 +120,7 @@ myMethod();
![Working of the method call in Java](img/524d4cee02ac3668c0bda12c0770e843.png "Working of the method call in Java")
Working of the method call in Java
Java 中的方法调用的原理
......@@ -247,7 +247,7 @@ Squared value of 10 is: 100
![Representation of a method returning a value](img/3119eccc9e076e7cfe62028f7ce6ffe2.png "Representation of a method returning a value")
Representation of a method returning a value
返回值的方法的表示
......@@ -290,7 +290,7 @@ Squared value of 4 is: 16
![Example showing passing argument to method and returning value](img/a4d7ea6f6937289efc4a781e08bfa8ba.png "Passing arguments and returning a value from a method in Java")
Passing arguments and returning a value from a method in Java
在 Java 中传递参数并从方法中返回值
......
......@@ -6,7 +6,7 @@
## 什么是访问修饰符?
在 Java 中,访问修饰符用于设置类,接口,变量,方法,构造器,数据成员和设置器方法的可访问性(可见性)。 例如,
在 Java 中,访问修饰符用于设置类,接口,变量,方法,构造器,数据成员和设置器方法的可性(可见性)。 例如,
```java
class Animal {
......@@ -223,7 +223,7 @@ I have 4 legs.
![Accessibility of all Access Modifiers in Java](img/2d390a56daf23e3f76b9075aa101f39e.png "Accessibility of all Access Modifiers in Java")
Accessibility of all Access Modifiers in Java
Java 中所有访问修饰符的可见性
......
......@@ -14,7 +14,7 @@
![A function is calling itself](img/98c8b3e1c9ca805d7cabab0f8bea1bf4.png "Working of Java Recursion")
Working of Java Recursion
Java 递归的原理
......@@ -72,7 +72,7 @@ return n * factorial(n-1);
![Finding the factorial of a number using recursion](img/2fadcf39da8f7f8c908856a362725c5e.png "Factorial Program using Recursion")
Factorial Program using Recursion
使用递归的阶乘程序
......
......@@ -14,7 +14,7 @@ Java 是与平台无关的语言。 这是因为当您编写 Java 代码时,
![How does Java program work?](img/78c88b2cb68225a328607e3142dcde31.png "Working of Java Program")
Working of Java Program
Java 程序的原理
......@@ -30,7 +30,7 @@ JRE 是 JVM 的超集。
![JRE contains JVM and other Java class libraries.](img/3ec88fb0a9d3b5347fdb6065d741b65f.png "Java Runtime Environment")
Java Runtime Environment
Java 运行时环境
......@@ -46,7 +46,7 @@ JDK(Java 开发套件)是使用 Java 开发应用程序所需的软件开发
![JDK contains JRE and other tools to develop Java applications.](img/70d0a6ead31a22745b9f926e601cd51d.png "Java development kit")
Java Development Kit
Java 开发套件
......
......@@ -18,7 +18,7 @@ Java 允许我们通过日志记录过程来创建和捕获日志消息和文件
![The flow of control of Java Logging API](img/9cd80e66a62f7c466eb14130b5431c48.png "Java Logging")
Java Logging
Java 日志
......
......@@ -4,7 +4,7 @@
#### 在本文中,您将了解 Kotlin 中的所有 4 种可见性修饰符,以及它们在不同情况下的工作方式。
可见性修饰符是用于设置类,对象,接口,构造器,函数,属性及其设置程序的可见性(可访问性)的关键字。 (您无法设置获取器的可见性修饰符,因为它们始终具有与属性相同的可见性。)
可见性修饰符是用于设置类,对象,接口,构造器,函数,属性及其设置程序的可见性(可性)的关键字。 (您无法设置获取器的可见性修饰符,因为它们始终具有与属性相同的可见性。)
[Kotlin 类和对象](/kotlin-programming/class-objects "Kotlin Class and Objects")文章中,您简要了解了可见性修饰符`public``private`。 您将详细了解另外两个可见性修饰符`protected``internal`(以及`public``private`)。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册