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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here