Just in touch with C # programming, I was also bewildered by the override and new. So took a little time to turn over the information, read the blog, and finally a small understanding, the study notes recorded here.First declare a parent class
Java override (Override) vs. overload (overload)
Override (Override)Overrides are subclasses that rewrite the implementation of the method that allows access to the parent class, and the return value and formal parameters cannot be changed.
Overloading is the same method that can be processed differently depending on the input data, overriding the same method that the subclass inherits from the parent class, entering the data, but to make a response different from the parent class, you
A overload
Two Override
Tri-Polymorphism
I. OverloadMany methods in the same class can have the same name, as long as their parameter declarations are different, and this method is called overloading.As an example: Public classoverload{"
Directory
1. Instructor Yang is a enthusiastic person
Ii. Getting Started
3. What else do I need to explain?
4. OK?
V. Final code1. Instructor Yang is a enthusiastic person
My project has been open-source for some time. I always thought that I had a
I used the GCC compilation tool in linux and liked to compile and link C Programs through command lines, I still find that the VS tool I installed does not see the tool for directly compiling C Programs. I am not familiar with this ). The command
Original: Java, C #, Swift syntax vs. quick check table
Java 8
C # 6
Swift
Variable
Type variable name;
Type variable name;
var variable name: type;
Variable (type inference)
Java 8
C # 6
Swift
Variable
Type variable name;
Type variable name;
var variable name: type;
Variable (type inference)
N/A
var variable name = initial value;
var variable name =
File Operations, c ++ File Operations
File and folder operations mainly use the following classes:
1. File class: usedCreate, copy, delete, move, and open a fileAnd help create a FileStream object.
Http://msdn.microsoft.com/zh-cn/library/system.io.
C # Preprocessor Directives #define #undef declares a variable that does not need to be assigned a valueNote that it must be placed on the using above, as#define TESTusing system.xxx; Public class task{ public Task () { }}#region
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.