Solved

Consider the Definition of the Measurable Interface and the Code

Question 7

Multiple Choice

Consider the definition of the Measurable interface and the code snippet defining the Inventory class: Consider the definition of the Measurable interface and the code snippet defining the Inventory class:   Why is it necessary to declare getMeasure as public in the Inventory class?  A) It is necessary only to allow other classes to use this method. B) It is not necessary to declare this method as public. C) All methods in an interface are private by default. D) All methods in a class are not public by default. Why is it necessary to declare getMeasure as public in the Inventory class?


A) It is necessary only to allow other classes to use this method.
B) It is not necessary to declare this method as public.
C) All methods in an interface are private by default.
D) All methods in a class are not public by default.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents