JAVA keyword and its role explanation 1. Access control 1) Private privateThe Private keyword is an access control modifier that can be applied to a class, method, or field (a variable declared in a class). These classes, methods, or fields can only
Overview:The source code of the C preprocessor handler, which runs before the compiler, usually begins with the symbol #.Also involves static, const knowledge points ... Some are similar to Java ... Some easily confuse t.t.Many of the chapters in
In a programming language, there is a way to tell the compiler that a piece of data is immutable. There are two requirements
1. A compiler constant that never changes2. A value that is initialized at run time, and this value is not changed
In Java
Application of 14.final Keywords
This keyword can only be used to define classes and define methods, and you cannot use the final keyword to define member properties because
For final is the meaning of constants, we define constants in PHP using the
(1) Final defines constants in Java that can be used for primitive types or class types, and if they are in a class type, such a type cannot be a parentClass is inherited, that is, it cannot have subclasses under it, and such classes are called
1.When defining an array, you can only use the following sequence:
Typename arrayname [size]; // correctThe following sequence cannot be used:
Typename [size] arrayname; // ErrorThis is different from the array defined in Java.
2.When defining a
The static keyword is described in a class where member properties and member methods are static, and where are the benefits of static members? Before we declare the "person" of the human beings, in the class "people" if we add a "human state"
Break, Continue, ReadOnly, Const, Ref, and Out params, readonlyparams
I have studied basic things such as Break and Continue; ReadOnly and Const; ref, out, And params, but I have not carefully studied what the problem is. I recently used it in
Document directory
Feedback
C # has two constant types: readonly (runtime constant) and const (compilation constant ), this article compares the two types of features and describes their application scenarios.
Working PrincipleReadonly is the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.