What is the difference between "Abstraction" and "Encapsulation"?
Please correct me if I am
Does Abstraction means "to show only those details that are related to the object and hide other details that are irrelevant to that object"?
But what is Encapsulation?
Please correct me if I am
Does Abstraction means "to show only those details that are related to the object and hide other details that are irrelevant to that object"?
But what is Encapsulation?
In Object Oriented Programming, encapsulation is an attribute of object design. It means that all of the object's data is contained and hidden in the object and access to it restricted to members of that class. The Process of Combining the Data & Function in a single unit is called as Encapsulation for the core purpose of information hiding.
In computer science, abstraction is the process by which data and programs are defined with a representation similar in form to its meaning (semantics), while hiding away the implementation details. Abstraction tries to reduce and factor out details so that the programmer can focus on a few concepts at a time.
In computer science, abstraction is the process by which data and programs are defined with a representation similar in form to its meaning (semantics), while hiding away the implementation details. Abstraction tries to reduce and factor out details so that the programmer can focus on a few concepts at a time.
0 Comments
Please add nice comments or answer ....