Advertisements
Advertisements
प्रश्न
Give two differences between Data Hiding and Encapsulation.
अंतर स्पष्ट करें
उत्तर
S. No. | Data Hiding | Encapsulation |
1. | Data security is the main focus of data hiding. | The goal of encapsulation is primarily to hide the system's complexity. |
2. | Restricting the use of data is the primary goal of data hiding. | Data and function wrapping is the subject of encapsulation. |
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.01: Introduction to Object Oriented Programming Concepts - EXERCISES [पृष्ठ ९]