Interview question: What is encapsulation?
[amazon_textlink asin=’8120352068|1491987650′ text=’Encapsulation’ template=’ProductLink’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’f15ac4fb-aa0b-11e8-8a76-3b617ede6a31′] is defined ‘as the process of enclosing one or more items within a physical or logical package’. In other words, Encapsulation is a process of binding data members (variables, properties) and member functions (methods) into a single unit. And Class is the best example of encapsulation. In [amazon_textlink asin=’9351191494|1292024011′…