Which of the following statements is true
A) Methods and instance variables can be public, protected or private.
B) Information hiding is achieved by restricting access to class members via keyword public.
C) The public members of a class are not directly accessible to the client of a class.
D) None of the above is true.
Correct Answer:
Verified
Q7: A constructor should return either true or
Q8: Object orientation uses classes to:
A) develop algorithms
B)
Q9: Objects can hide their implementation from other
Q10: Instance variables or methods declared with the
Q11: Which statement is false
A) The actual data
Q13: Every class inherits directly or indirectly from
Q14: The public methods of a class present
Q15: An instance of a user-defined type is
Q16: Variables or methods declared with access modifier
Q17: Variables declared within class methods are called
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents