1.java Data types
Built-in data type:boolean (1), Byte (8), char (+), short (8), int (+), long (+), float (+), double (+)
Reference data type: Object, array
2. Modifiers and keywords
Methods declared as public
Interface--------------------------------------------------------------------------------One, interface (is a specification)1. Interface name/interface files are similar to classes and are also written in. java files2. Keyword Interface Interface
/*** Producers produce fruit, if the fruit is not bought then the production is not waiting, if the fruit is bought by the consumer, the consumer will inform the producer* Tell the producers that I have bought, fast production, consumer the same, if
One, Java modifierThe Java language provides a number of modifiers, mainly divided into the following two categories:
Access modifiers
Non-access modifiers
1. Access Control modifiersIn Java, you can use access controls to protect
Learning Essentials
Packaging
Access control characters
Package
What is the flaw in encapsulating code that is not encapsulated?For example: The dog's health value is assigned to-100. How to avoid it? --Use encapsulation.The
Java Learning notes 1. InheritanceKey words:Extendsin Java , the inheritance of a class is a single inheritance, that is, a subclass can only have one parent class, so extends can inherit only one class .egpublic class Penguin extends
Java access modifier (access control character)Java uses modifiers to control access and other features of classes, properties, and methods, usually at the very front of the statement. For example:
public class ClassName {
//Body of class
}
Beginners C + + friends often see in the class Public,protected,private and their inheritance in the expression of some of the scope of access, it is easy to confuse. Today this article will be very analysis of C + + public, protected and private
Welcome to visit the blog Java Basic Syntax
First Java program (Helloworld.java)
The public class HelloWorld {//Exposes classes publicly
static void main (String []args) {//Program entry
System.out.println ("Hello World" ); Standard
13. Type of Access
The access modifiers of a type allow developers to restrict access to class members, a new feature of PHP5, but
is a good feature of the OOP language. And most OOP languages already support this feature. PHP5 supports the
Public: access is highest; external functions can also be accessed directly (whether they are member variables or member functions), in addition to derived classes.Private: access rights are minimal; only the internal functions of the class are
Static decorated members belong to the entire class, not to a single object)Definition: Putting a class into the internal definition of another class, the internally defined class is called an inner class (and some nested classes), and the class
Build a Vue. js Project template and a vue. js TemplatePreface
Since the beginning of this year (2017), our team began to introduce "Vue. js" to develop mobile products. As the leader of the team, my first task is to design the overall architecture.
1.java variables are divided into three types, class variables, local variables, member variable class variables are static modifiers of the variableThe 2.java modifier can be divided into two main classes, one accessible modifier protected private
JavaScript: Introduction to Object-Oriented ProgrammingIntroduction
In this article, we will consider various aspects of object-oriented programming in ECMAScript (although this topic has been discussed in many previous articles ). We will look at
This article mainly introduces a deep understanding of the JavaScript series (17): An Introduction to object-oriented programming, this article describes the introduction, paradigm and ideas, class-based features and prototype-based, static-based,
1. Private: In the same class2. Default: Classes in the same package3. Protection: In a class subclass in the same package (inheritance)4. Public: No scopeWhen you create subclasses and override methods, you must consider the access control of the
The default is private inheritance when no access control is available.When a function in a base class has several overloaded versions, and an overloaded version of the function is also implemented in the inheriting class, the base class version
Article 3: properties _ Section 1: control property and property persistence; Article 3 controlsI. control attributes
Attribute is the basic syntax of various. net languages. We often say that the control property refers to the property that is
Analysis of Java decoration appended public default protected private static final abstractthe function of a modifier: used to define a class, method, or variable, usually at the front end of a statementTwo classification (broadly divided into two
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.