Hi,
I had read peoplebooks reagarding this topic. I know property is an attribute of an object .But doesnt know where to use bcoz it doesnt perform the role of an object so, cannot be used as an object.Also why GET-SET to be used when we can use a simple variable and play with its values.Here to set values we can use construtor also.Hence the confusion is there in using properties.
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
We have to use GET-SET methods for objects bcoz
as per OOPS concept
private members of an object could be accessed by member methods only(Data hiding), it will not be available to the outsideworld to manipulate.
so the getter & setter methods will be the members of objects. & when ever we need to set the value of an attribute use SET method of that attribute & to get value(for printing,or manipulating) use GET method.