answersLogoWhite

0

Can you instantiate an interface

Updated: 8/10/2023
User Avatar

Wiki User

12y ago

Best Answer

According to a beginner's book on Java, an interface can't have constructors. Also, the interface itself can't contain the method implementation.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Interfaces in Java can not define constructors.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

No. You cannot instantiate an interface. However, you can implement the interface using a class and instantiate the class

This answer is:
User Avatar

Add your answer:

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

Can you instantiate an object of interface?

No. An interface can only be implemented.


Can you instantiate an abstract class?

No. You must create a subclass of the abstract class in order to be able to instantiate it.


How do you declare a pointer variable in c?

int* pint; // instantiate a pointer to an int. float* pflt; // instantiate a pointer to a float.


What is a good explanation of instantiate?

The term 'instantiate' can be used in many different ways. The word 'instantiate' is a term meaning to provide an example. One way an individual might use the term is 'The mom instantiated how to tie her shoe.'


What words start with instant?

-instantly -instantaneous -instantiate -instants


What is the difference between these words instantiate substantiate transubstantiate?

sthdjhgjh


How do you instantiate in vbnet?

dim obj as object obj = new object();


What are the types of network interface card?

Gigabit Ethernet interface Controller interface Serial interface Multilink Group interface MFR (Multilink Frame Relay bundle interface) Dialer interface Loopback interface Tunnel interface ATM interface


What interface is an interface that uses graphics as compared to a command-driven interface?

Graphical User Interface


In C plus plus is it possible to instantiate an array without specifying a length?

No. You can declare a dynamic array without specifying a length, but in order to physically instantiate (either by using malloc or by using object-oriented construction) you must provide a length.


What is a tagging interface type?

A tagging interface type in Java is an interface that has not defined methods such as the java.io.Serializable interface.


Does a corsa have an interface on non interface engine?

Does a Chrysler Sebring 2008 have an interface or non interface engine