Chapter 9 Flashcards
Should io functions use try catch
Yes
How to define abstract class in JAVA
by using abstract keyword
How to define a method abstract in JAVA
by using abstract keyword
Does interface a pure abstract class
Yes
What is pure abstract class / interface
In there, there is no implementation, only method signatures
How to define an interface
By using interface keyword
Who implement interface
classes
If a class implementing interface does not provide definition of all methods, it will not compile. How could we compile it
By making it abstract
Can class implement more than one interface
yes. multiple inheritance
Can an interface inherit from another interface
Yes
Can an object of interface instantiated
No
What are abstract classes
Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.