- A A public method
- B A private method
- C An access method
- D A protected method
- Share this MCQ
Answer:
A
Share this MCQ
- A. Correct: Methods that are declared as
public
can be called from anywhere that the class is accessible. - B. Incorrect: Methods that are declared as
private
can only be called from methods within the same class. - C. Incorrect: An
access
method doesn’t exist in finance and operations apps. - D. Incorrect: Methods that are declared as
protected
can only be called from methods in the class or methods in a subclass of the class.
Share this MCQ