Hire Our Expert Programmer & Technical Writer To Do Your Capstone Project
+1 vote
in Programming Languages & Algorithms by (user.guest)

2 Answers

0 votes
by (user.guest)
Best answer

Think of an interface as a blueprint of a class. An interface is an abstract type used to specify the behaviour of the class. A Java interface contains static constants and abstract methods. An interface is a means to achieve abstraction in Java. It allows only important and essential details to be shown at first glance.

+1 vote
by (user.guest)
An interface can be described as collection of abstract methods. An abstract class is used in the grouping of related methods, with all methods having empty bodies, hence described as a collection of abstract methods. An interface is similar to a class, but a class can contain several interface.

Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.