Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Tutorial  >  callstatement
Call statement

Purpose of this chapter.

We will learn about the call statement.

Method call.

If the semicolon followed to a single expression that ends with a method call, it is a call statement.

A call statement is the following format.


call-expression ;

Call expression.

An expression that ends with a method call is the call expression.

If there is a dot operator in a call expression, the call statement call a method of an instance that is returned by the left side of the last method call.

If there is not a dot operator in a call expression, the call statement call a method of current instance.

The end of the call statement.

The end of the call statement is represented by a semicolon.

Next
Previous
Copyright © Rice All rights reserved.