‎2008 May 16 6:24 AM
hi
experts
let me give the details how to use the private methods in the class,
hw can i pass the data, wt is procedure to using private methods in the class
please provide some samples regarding private methods
Regards
Spanadana
‎2008 May 16 6:36 AM
hi
private methods r similar to normal method and u can pass value to them as u do for else .
the difference is u can not access private method out side the class in which u defined them .
these are access modifiers , there r three type of these ,
public
private
protected
check these for details in any document related to access modifier.
reward if helpful.
‎2008 May 16 8:08 AM
HI
THANKS TO REPLY
CAN U GIVE SOME SIMPLE EXAMPLE REGARDING
HW CAN I USE THE PRIVATE METHOD IN THE CLASS,
HW CAN I PASS THE PARAMETRS TO PRIVATE & HW TO GET RESULT OF PRIVATE METHODS
CANU GIVE SIMPLE EXAMPLE.
REGARDS
SPANDANA
‎2008 May 16 6:46 AM
Hii.........
These areas define the external visibility of the class components, that is the Interface between the class and its Users.
Note: Each component of a class must be assigned to one of the visibility sections.
Public Section: All of the components declared in the public section are accessible to all users of the class, and to the methods of the class and any classes that inherit from it. The public components of the class of the interface between the class and its users.
Protected Section: All of the components declared in the protected section are accessible to all method of the class and of classes that inherit from it. Protected components from a special Interface between a class and its subclasses. Since inheritance is not active in Release 4.5B, the protected section currently has the same effect as the private section.
Private Section : Components that you declare in the private section are only visible in the methods of the same class. The private components are not part of the external interface of the class.
Regards,
sg