when we write all our application methods and variables in a classes is nothing but data abstraction and encapsulation. Is it right?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Could be true but depends over your design. An Application is nothing but combination of classes working as units to accomplish task. So every thing is something from a class like method, property etc, in Object Oriented Methodology
Abstraction:
By this feature of object oriented programming it is possible to represent the needed information in program without presenting the details.
Data Encapsulation:
Data Encapsulation is the process of combining data and functions into a single unit called class. By this method one cannot access the data directly. Data is accessible only through the functions present inside the class. Thus Data Encapsulation gave rise to the important concept of data hiding.
reference: what is data abstraction and data encapsulation