Abstraction in OOPs means,
hiding or abstracting something. Abstraction helps in hiding requirements which
are not required for the actual implementation; this might sound similar to
encapsulation. Yes Encapsulation and Abstraction concepts complement each
other.
Abstraction tends to hide the full complexity of the system form the external world and show only the details which are required to use the features exposed by the object. The actual functionality might depend on many other parameters which are not required to be exposed to the outside world; abstraction hides these and shows only those details which are required to use the system.
The following class explains the concepts of Abstraction.
Abstraction tends to hide the full complexity of the system form the external world and show only the details which are required to use the features exposed by the object. The actual functionality might depend on many other parameters which are not required to be exposed to the outside world; abstraction hides these and shows only those details which are required to use the system.
The following class explains the concepts of Abstraction.