Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding private methods

spandana_babu
Participant
0 Likes
549

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

3 REPLIES 3
Read only

Former Member
0 Likes
531

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.

Read only

0 Likes
531

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

Read only

Former Member
0 Likes
531

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