When discussing classes and objects, encapsulation means that. a. all the fields belong to the same object b. all the fields are private c. all the fields and methods are grouped together d. all the...


When discussing classes and objects, encapsulation means that.


a. all the fields belong to the same object


b. all the fields are private


c. all the fields and methods are grouped together


d. all the methods are public


 Assume that a working program contains the following statement:


myDog.setName("Bowser")


Which of the following do you know?


a. setName() is a public method.


b. setName() accepts a string parameter.


c. both of the above


d. none of the above

Nov 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here