| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#2 (permalink) |
|
Member
Join Date: Feb 2006
Location:
Posts: 42
Thanks: 0 Thanked 5 Times in 3 Posts Thanks: 0
Thanked 5 Times in 3 Posts
Rep Power: 3
|
who said that we need to minimise the class variables..
i am member classes have almost 80 member variables.. but one thing u have to do .. make them private or protected |
|
|
|
|
|
#3 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello
why do u we use java since it has gud security purpose right . We make all the variable as private /protected as naga said mostly . but the use of private variables will restrict those variables in other classes so thatz the reason we only declare limited private member variables (where ever necessary) rest all use public methods /variables .. depending on functionality as well as complexity of code bye sowmya
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#4 (permalink) |
|
Member
Join Date: Feb 2006
Location:
Posts: 42
Thanks: 0 Thanked 5 Times in 3 Posts Thanks: 0
Thanked 5 Times in 3 Posts
Rep Power: 3
|
but sowmya all the class variables are its properties... that defines an entity in realtime... those cant be public... but they can have setx and getx methods.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|