1, describe one way that the implementation details can affect the applications
ID: 3665720 • Letter: 1
Question
1, describe one way that the implementation details can affect the applications that use an ADT, despite the use of date abstraction.
2, what kinds of constrcuts can be declared in a java interface?
3,true of false, explain.
a, you can define constructors for a jave interface.
b, classes implement interfaces
c, classes extent interfaces.
d, a class that implements an interface can include methods that are not required by the interface.
e, a class that implements an interface can leave out methods that are required by an interface.
f, you can instantiate objects of an interface
g, an interface definition can include concrete methods.
Explanation / Answer
2) The constructs in an interface are abstract methods constants, default methods, static methods, and nested types. Method bodies exist only for default methods and static methods.
a) An interface does not contain any constructors. it contains only abstract methods.
b) true.
c) false ( classes extend classes and inmplement interfaces)
d) true
e) false (Unless the class that implements the interface is abstract, all the methods of the interface need be defined in the class )
f) false
g) true
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.