Could you please explain the scenario.
when we have to use Abstract class & Interface?.
I have a big confusion regarding Abstract class & Interface
Abstract class-" hiding implementation detail and showing essential features only."
you have a mobile. You know how to use mobile mean how to call some one n how to msg someone, etc. but you don't care about internal process behind the calling, msg etc. that means the mobile showing only feature that you have to know.
Interface- "Interface just like a class. It is a contract for a class that implement it."
Car is an interface. It defines specification like four wheels, one engine, etc. for every car.
I think it could help. If you have any query please reply me...
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.