The main class

Here is our main class; it contains the global list of computers:

import computerList.models.Computer;

class ComputerList
{
   public static var computers = new List<Computer>();

   public static function main():Void
   {
      new computerList.controllers.ComputerListController();
   }
}

Now, you can test our application and see that it works!

Get haXe 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.