Java What is the difference between a class and an interface 1.Classes have fiel
ID: 3720611 • Letter: J
Question
Java
What is the difference between a class and an interface
1.Classes have fields and methods and interfaces have only methods
2.Classes have only concrete methods and interfaces have abstract methods
3.Classes can have concrete or abstract methods and interfaces have only abstract methods
4. You can inherit from classes but not from interfaces
1.Classes have fields and methods and interfaces have only methods
2.Classes have only concrete methods and interfaces have abstract methods
3.Classes can have concrete or abstract methods and interfaces have only abstract methods
4. You can inherit from classes but not from interfaces
Explanation / Answer
3. Classe can have concrete or abstract methods and interface have only abstract methods
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.