answersLogoWhite

0

How do you create an interface?

Updated: 8/16/2019
User Avatar

Wiki User

16y ago

Best Answer

by declaring in the header of the class:

public/private interface [interfaceName]

and do not write any method body(i.e. public void dance();)

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create an interface?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you create a constructor for an interface in java?

NO, we cannot create a contructor for an interface in java.


Can you create an empty interface with no definitions?

Yes. This is a valid interface definition in Java: interface Useless {}


Can you create an object of interface in java?

maybe


Can a class write inside an interface?

Yes, you can create a static class inside an interface, but it is normally not a good idea.


What are the functions of an interface in Java?

To create an abstraction or a blueprint for a class to implement later.


What provides a file system interface that allows clients to create and modify files?

Computer server system


Where is the headquarters for Interface Design?

Interface Design is not a company. It is a concept that graphic and web designers use to design and create technological items, such as computers. Specifically, the concept connects how the item is designed with how the item operates.


What does midi interface do?

MIDI stands for Musical Instrument Digital Interface and allows you to connect any electronic instrument to your computer so that using software, such as Logic or Reason, you can create, record and edit your own music.


Which languages support multiple interface?

If by interface you mean, a mechanism to achieve abstraction and create a blueprint for future implementation. Java/C#/C++ all allow for multiple interfaces(abstract classes in C++) to be implemented.


When would you configur a GRE tunnel?

To configure a GRE tunnel, create a tunnel interface by issuing the interface tunnel command from the global configuration mode. To configure the tunnel source and destination, issue the tunnel source {ip-address | interface-type} andtunnel destination {host-name | ip-address} commands under the interface configuration mode for the tunnel.


IDentify the data categories that are used to create a network configuration table for a router?

Interface name IP routing protocols


What is meant by interface in java?

interface is just like a class. its contains abstract methods without any implementation and we cant create object for the class. we can only sub classed . used to achieved multiple inheritance in java.