Doubt On Abstraction and Encapsulation

From my point of view
Encapsulation:
we Bind the data and methods to be executed on that particulat data into one unit known as class.so we r not allowing them to Access data without the object.
Abstraction:
To Change the access levels we use public,private,protected to restrict on what data user can see or which funtions he can access.we are giving an abstract interface on not completly which data abstraction

Is my Point of view correct?? if no please correct me

thanks,
vishnu k.
Topic archived. No new replies allowed.