2014年1月8日星期三

Algorithm Implementation Notes

Chapter one:
Review Java:
Static method:
Static methods are called functions in many programming languages, each static method is a sequence of statements that are being executed.

example:
public static double sqrt (double c)

Properties of methods:

1.Arguments can pass by value
2. Method name can be overloaded: the same name with different arguments
3.A method can have a single return value but may have multiple return statements.
4.May have a side effect: such as a void main effort

Recursion:
The method can call itself.

Application programming interfaces:
That explains of library methods that are intended to use by others, mostly speaking, it is the static method.

Conversions:
http://www.cnblogs.com/viinye/archive/2012/12/22/2829160.html

没有评论:

发表评论