Sharmistha Sarkar wrote:Can someone please explain me in which situation of some business requirement I should use encapsulation?
Simple answer: always.Sharmistha Sarkar wrote: . . . in which situation of some business requirement I should use encapsulation? . . .
So encapsulation comes under abstraction concept, isn't it?
Thanks & Regards,
Vishal S Shukla (SCJP 93%, SCWCD 94%, SCBCD 100%)
Don't get me started about those stupid light bulbs. |