We have multiple new keywords now. Let's match the descriptions and these lines of code
Computer scienceProgramming languagesJavaCode organizationObject-oriented programmingClass hierarchiesInterfaces and abstract classes
Declaring functionality with interfaces
What are we implementing now?
Report a typo
Match the items from left and right columns
class Task implements Question {}
interface Question {}
class Task {}
Interface declaration. Multiple classes now can implement and build functionality based on this interface
Allows declared class use all the properties and methods of the Question interface
Declaring class without interface inheritance
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.