Tuesday, July 3, 2018

Referencing Object Methods

It is common to call methods within one class from other methods in that class.
To refer to a method in the same class, use the keyword
this.Example of Using ThisA class has a method called myMethod() and another called run(). The run()
method calls the myMethod() method.

1
2
3
4
  public void run()  
  {  
     this.myMethod();  
  }  

Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...