Information Technology Reference
In-Depth Information
Table 2.1
Overloading methods of the ChatterBox class
Method
Signature
string sayHello()
sayHello()
string sayHello(String userName)
sayHello(String)
string sayHello(int times)
sayHello(int)
access to the desired actions by differentiating the implementations by the argu-
ments passed. Table 2.1 lists the signatures of each of these implementations.
The following code segment provides examples for possible calls to the
sayHello method with different arguments.
Search WWH ::




Custom Search