Environment: JDK 1.7. This article can be summed up in one sentence: **string is not a basic type, it is not an array, it is a class, and an array is a class. ** Because scripting languages are more used, I've written this code in Java: String str =
First, inheritance1. Concept of inheritanceInheritance solves code reuse and allows our programming to be closer to human thinking. When multiple classes have the same attributes (variables) and methods, you can abstract the parent class from these
1. What is object-oriented?Object-Oriented Oo = object-oriented analysis Ooa + object-oriented design Ood + Object-oriented programming oop; The popular explanation is that "all things are objects", and all things are considered to be independent
1. The modifiers of the class are divided into two types: accessible and non-access control characters.
The accessibility control characters are: public class modifiers
Non-access control characters are: abstract class modifier abstract; final
class internal
derived class for the same assembly
other classes of the same assembly
derived class of different assemblies
other classes of different assemblies
priavte true
The most important factor in distinguishing between well-designed modules and poorly designed modules is whether the module hides its internal data and other implementation details for other external modules. A well-designed module hides all the
Terms:
Encapsulation (encapsulation) or "information hiding (information hiding)": The module Hides all implementation details, isolates its APIs from its implementation, communicates communication between modules only to their APIs, A module does
-----------Android Training, Java training, Java Learning Technology blog, look forward to communicating with you. ------------
Static keyword:
Used to decorate member variables and member functions
The modified member has the following
1. In Java, classes and classes can only be single inheritance, not multiple inheritance. Multiple Inheritance Disadvantage: (1) If you have a variable with the same name in multiple parent classes that inherit from a subclass, a subclass is
The following example demonstrates how to create and use a user-defined class and how to create a dynamic-link library. Create two files with a text editor. The first one is Apple.cs, which reads as follows:
public class Apple {
private string
The concept of an interface
An interface is a set of operations that are not implemented. An interface provides only the declaration of an operation and does not provide any corresponding functional code. The specific functional code is implemented
What this article brings to you is about how to define a class in PHP. PHP definition of a class method, there is a certain reference value, the need for friends can refer to, I hope to help you.
Object-oriented Basic concepts
Consists of 3 parts:
16.2.1-Word Space Declaration
The Declaration of the namespace is the keyword "namespace" followed by the name Space name and the namespace body, and then a semicolon can be followed. The format is as follows:
namespace Qualified-identifier
I just superficial study some C + + syntax, variable type and other basic content, if there is not the place to point out. If you are like me, do not understand the pointer operation, for the package C + + Dynamic library headache, the following
Https://github.com/chenglingr/MyReUse/tree/master/MVCDemoThis series of tutorials references and draws on the following blog posts:Http://www.cnblogs.com/powertoolsteam/p/MVC_one.htmlHttp://www.cnblogs.com/liyanwei/p/43f3dc2484d4d082e89ca86710c4d1c2.
First, install the JDKDownload a JDK, install it, and remember the path to the installationSecond, the Environment configurationThis computer--properties--Advanced system settings--environment variablesNew system Variable: variable java_home value:
Java requires that the public class name be the same as the program file name.
Identifier in Java: preceded by a letter, underscore ' _ ' or dollar sign ' $ '; the other characters in the identifier must be letters, numbers, underscores, or $;
Java listens to events that are easy to use.
The first time I heard that the Listener was a webGIS project three years ago. At that time, my impression on Listener was a "Monitor", which monitored every action on the interface and triggered a
What is AIDL of Android? AIDL is the definition Language of Android Interface. To put it bluntly, it is defined by Android and a mechanism for inter-process communication,
It is a bit like the method that calls the Service.
Okay. The following code
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.