Originally posted by ram kumar:
Wraping up of data and functions is called data encapsulation !
Agreed ! so a class is encapsulated!
Very true!
Abstraction refers to act of representing essential features without showing the details of implementation.
True again!
What do you call this as ?
Abstract class/
Interface
Methods
Classes again or what it is actually ?
What exactly is your question? Do you have a doubt in what they are called as ?
Even in a class, as per my understanding, we can say an object is an abstraction of class,
No. Object is an instance of a class! It is of course an existing real representation of the conceptual blue print!
Justifying as :
Objects call methods and it does not show how the implementation is made in the method to modify the data!
Right!
I think you have mistaken the term "hiding the implementation". It is something like "code to an interface".
That means, you expose just what methods are available and what arguments are to be passed and what is the return value of a method. That's all. No matter how they are implemented as it is purely left out to the implementing class of the interface.