answersLogoWhite

0


Best Answer

An interface can only have abstract methods or constants in it. A class can have both that and everything else in Java.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the major difference between an Interface and a Class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the major difference in class and interface in c?

The implementation detail. Classes may provide a default implementation, interfaces provide only the method signatures


What is the major difference between DOS and windows OS?

Windows has a graphical interface while DOS is a command line interface.


What was the major difference between early Windows and Macintosh operating systems?

The command line interface and the graphical user interface.


Difference between class and interface in java?

A class is a data type. An interface consists of the private, protected and public members of a class, allowing consumers of the class to interact with the class representation in a controlled manner. The private interface is only accessible to the class itself and to friends of the class. The protected interface is similar to the private interface but is also accessible to derivatives of the class. The public interface is fully accessible. The private and protected interfaces are intended purely for use by the class implementers while the public interface is intended for use by both consumers and implementers.


What is the major difference between public and private access method in computer programming?

public means this can be accessed from any class private means this can be accessed only from the current class


What are the major Difference between informational and analytical report?

An informational report focuses on presenting facts, data, and information without providing interpretations or analysis, while an analytical report involves an in-depth examination, evaluation, and interpretation of the data to draw conclusions and make recommendations. In an informational report, the focus is on presenting information objectively, whereas in an analytical report, the emphasis is on providing insights and recommendations based on the analysis.


What is a major difference between the xia and shang dynasties?

The major difference is by sues


A major difference between Calvinism and Lutheranism relates to?

The major difference between the two relates to the emphasis on predestination.


What was the Main use of sheep by early colonist in US?

Describe the major difference between sheep's and goats


Which is a major difference between the cell membrane and the cell wall?

Which is a major difference between the cell membrane and the cell wall


What is the major difference between vertebrates and non-vertebrates?

The major difference between vertebrates and invertebrates is that vertebrates have a back bone and invertebrates don't


What is the difference between gtp and gt?

The major difference is that the GTP is supercharged.