Path strings are manipulated by path
Get suffix
Can merge paths
Get file name
Directory operations by directory and DirectoryInfo
To determine whether a directory exists
Create a table of contents
Delete Directory
Get all subdirectories under directory
Get all the subfolders under the directory
File and FileInfo to manipulate files
Read files
Write a file
Append files
To determine whether a file exists
Create a file
deleting files
1. Path class
The following points are from the introduction to MFC:
Which function is called depends on the original type of the pointer, and the object actually referred to by the pointer is irrelevant.
1. If you direct a "base class Pointer" to a "derived class", you can only call the functions defined by the base class through this pointer.
2. If you direct a "pointer to a
Instance variable
Instance variables are declared in a class, but outside of methods, construction methods, and statement blocks;
When an object is instantiated, the value of each instance variable is then determined;
Instance variables are created when the object is created and destroyed when the object is destroyed;
The value of the instance variable should be referenced by at least one method, construct method, or statement blo
If JAVA wants to make the class unable to be new, it can use private to change the class constructor to private. In this way, an error will be reported when the class is new. The private constructor
If JAVA wants to make the class unable to be new, it can use private to change the constructor to private so that an err
Create a class in JAVA, use a class, and create a class in java
I. Create a class:
Test. java
// Define the class public class Test {// property String name; String gender; int age; // method, public void eat () {System. out. p
* Class description: String tool Class Name: String_U, tool class string_u
/*************************************** * *** Class description: string tool Class Name: string_U *************************************** * ***/public class
First, the difference between the string class and the StringBuffer class, the string class is a constant, cannot be added, and StringBuffer is a character buffer, you can add a string inside. For example:The process here actually is this: generated a String object "HelloWorld" reference held by STR when executing str + = "Welcome"; This line of code is actually
1. Abstract classes and class members
Use the abstract keyword to create an incomplete class and class member that must be implemented in a derived class.
For example:
public abstract class A { // Class members here. }
An
Tags: abstract BSP rewrite put imp ISO add INPU intThe class diagram for the Datainput interface has been drawn, although the class diagram has shown elements that have various links to the two implementation classes, DataInputStream and Randomaccessfile. But at this point, I know nothing about these elements, and the class diagram is not exhaustive. The
1 Public classPerson {2 3 //Method4 5 Public voidEat () {//define how to eat6 7System.out.println ("Defines the parent class person."));8 }9 Ten Public voidWork () {//define how the parent class works One ASystem.out.println ("Define the parent class person."); - } - the} Public classChildextendsperson{ Public
C ++ does not seem to distinguishInternal and Nested classesTwo nouns.
Internal and Nested classesDefine a class in a class.
Local classDefines a class in a function. (C ++ cannot define a function in a function. C ++ defines the function in the class, that is, the member function .) (
C ++ internal
10.2.2 Calling the overridden or hidden base class methodYou can access the base class members inside of a derived class, whether you are overriding a member or hiding a member. This can be useful in a number of situations, such as:To hide an inherited public member from a user of a derived class, you can still access
++ ++ ++Internal class, local internal class, anonymous internal class++ ++ ++/*** * Usage reason:1. Internal class method, which can access the data in the scope of the 2. The internal class can be hidden from 3. When you want to define a **/Public
static functionObject_to_array ($obj) {$class _name = ""; Get class Nameif(Is_object ($obj))
{$class _name = Get_class ($obj);
This key has a class name $obj = (array) $obj; $obj 2 =Array(); Key to remove the class nameforeach($obj as$k => $v) {//echo $
Occurrence Reason: parent classOf
uncertainties
Why design abstract class this technology?
1. in real-world development, we may have a class that is the parent of other classes , but it does not need to be instantiated by itself, and the main purpose is to let subclasses inherit. This achieves code reuse, while benefiting project designers and design classes.
2. keywords :abstract
3. Basic usage :
Abst
Ruby class inheritance, abstract classes, class expansion, proxy class instances, ruby instances
Summarize the class extensions encountered in the work:
1. class inheritance:
When multiple classes share many methods, you can extract the public methods and inherit the require
Local inner class features:1. A class defined in a code block or method body is called a local inner class2. The local inner class accesses the properties and methods of the external class using the "external class name." This. The name of the property and the external
Object Class (root class), object class
The methods in the Object are all methods in the class. Each class inherits the Object class by default.
Boolean equals (Object obj): the default comparison address in the Object. You can ov
Fang get the data. The server side wants to get the data through the stream. The request provides a getinputstream read stream.Common methods of the Fileitem class:1. Boolean Isformfield ()The Isformfield method is used to determine whether the data encapsulated by the Fileitem class object is a plain text form field or a file form field that returns true if it is a normal form field, otherwise false. As a
When we are dealing with very large data, the usual data types are not enough to indicate that in Java there are two classes BigInteger and BigDecimal representing the large integer class and the large floating-point number class, the two classes in theory as long as the computer memory is large enough Can represent a large number of wireless. They are all in the java.math.* package and can be viewed in 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.