Thursday, April 15, 2010

Public access in haXe

We use public keyword with fields, methods and constructors to impose least restriction. Public class is visible to any class in the Java program, whether these classes are in the same package or in another package. If a field or method does not have any access modifier set to it, then it is assumed that the field or method is set with public access. But it is recommended to use ‘public’ keyword when it is to be used.
The syntax for using private field is as follows:
[public] var variable-name [: type[ = value]];
We make variable-name as public by placing the public keyword in front of it. This is optional. We can set type and initialize it at the same time.
In haXe, we can write it like:
public var pound:Int;
Here integer type pound is declared as public.




List of my works:

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

No comments: