Abhishek Kumar Ravi

Abhishek Kumar Ravi

  • NA
  • 11.5k
  • 4.5m

Need LOGICAl Help in C#!!

Sep 16 2012 11:31 AM
Since past day i m in  ENCAPSULATED shel, i mean ENCAPSULATION. 
First i want to ask :

1. How will i decide which FIELD or METHOD will be PUBLIC or PRIVATE, i cant think about .
That's why , i always make all the FIELDS Private and all the methods PUBLIC and call every field using method. Is it a correct way?

2.While going though ENCAPSULATION, i met PROPERTY. 
it has GET and SET , most of the time GET returns value and SET takes value. I can't get the program's approch. How can i approch the PROPERTY in my own code. 

Plz..sum1 help me in getting these mesh hink practicle approch, so i can t:X

Answers (3)