PDA

View Full Version : Function also provides encapsulation, what it means with an example please?



sana.pari
04-24-2011, 06:23 PM
Subject: Functions
Dear sir,

1. Q: Function also provides encapsulation, what it means with an example please?

Support
04-24-2011, 06:23 PM
In encapsulation detailed logic of any activity is hidden and same is the case of function in which we are concerned just with the output returned value not with the inner logic of the fuction thats why we say that functions provides encapsulation