In general, it is better to use __________ visibility, because derived classes may be written by different programmers, and it is always a good practice to restrict and control access to the base-class data fields.
A) protected
B) public
C) package
D) private
Correct Answer:
Verified
Q3: Objects further down the hierarchy are more
Q4: The _ relationship between classes means that
Q5: A Ford Model-T automobile is in a
Q6: According to the inheritance structure defined by
Q7: If the execution of any constructor in
Q9: Member functions generally have _ visibility, so
Q10: Having multiple member functions with the same
Q11: Suppose two Clock class functions named get_military_time
Q12: If a member function is declared _,
Q13: The C++ compiler can assign object addresses
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