Writing a constructor and constructing an actor in SALSA programming is similar to object construction in Java programming. For instance, one can declare the HelloWorld actor as follows:
// An actor reference with type HelloWorld HelloWorld myRef; |
// Assume the constructor of HelloWorld is:
// public HelloWorld() {}
myRef = new HelloWorld();
|