oop - How abstraction is achieved using interfaces in java -


i know

abstraction process of hiding implementation details , showing functionality.

but using interfaces can not implement thing.we need implemented class develop applications.for example in java have list interface has sub classes linkedlist , arraylist.they provided code classes also.we able see code implemented code.can 1 give me example abstraction.

if give interface someone, can achieve abstraction.but example this?

hiding here means making client of code independent of underlying implementation.

interfaces specify what can do. implementations specify how it.

as how tos improve/change time, client (another piece of code) using interfaces continues work without modification. client still gets wants, in more efficient manner now.

abstraction style of programming aimed @ easing lives of programmers , consumers. has nothing hiding source code others. there other ways it.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -