18) Examples of access specifiers are the keywords: A) table and row B) opened a
ID: 3711051 • Letter: 1
Question
18) Examples of access specifiers are the keywords: A) table and row B) opened and closed C) private and public D) near and far E) None of these 18) 19) This is used to protect important data. 19) A) protect() member function B) public access specifier C) class protection operator, @ D) private access specifier E) None of these 20) In OOP terminology, an object's member variables are often called itsand its member20) functions are sometimes referred to as its behaviors, or A) attributes, activities B) data, activities C) attributes, methods D) values, morals E) None of theseExplanation / Answer
18)
Examples of access specifiers are the keywords private and public (C).
Access specifiers are keywords in object-oriented languages that set the accessibility of classes, methods, and other members.
C++ uses the three modifiers called public, protected, and private.
When a class is declared as public, it is accessible to other classes defined in the same package as well as those defined in other packages. This is the most commonly used specifier for classes.
19)
This is used to protect important data. Private access specifier (D).
The class members declared as private can be accessed only by the functions inside the class. They are not allowed to be accessed directly by any object or function outside the class. Only the member functions or the friend functions are allowed to access the private data members of a class.
20)
In OOP terminology, an object’s member variables are often called its attributes and its member functions are sometimes referred to as its behavior or methods.(D)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.