1)What is the default security/access designation/descriptor for a C++ class pri
ID: 3826439 • Letter: 1
Question
1)What is the default security/access designation/descriptor for a C++ class
private
secure
protected
public
2) Items in the __________ area of a class are accessible to all entities that can "see" the object(s) of that class type
protected
open
private
public
3) The primary difference between classes and structures is that classes can have functions in them while structures cannot
True
False
4) how many structures or entities are typically needed if using a transaction model for a problem solution?
10
3
4.5
6
private
secure
protected
public
Explanation / Answer
1.
There are three access specifiers in C++.
The default security/access designation/descriptor for a C++ class is private.
Answer: private
2.
Private members of a class are accessible only to the member functions of the class.
Public members of a class are accessible or available to all. They can be accessed by other classes also.
Protected members of a class can be accessible only member functions of the class and derived class of that class.
Answer: public
3.
A class as well as a structure can have functions within them.
The members of a structure are public be default while the members of a class are private by default.
A class can be inherited by another class but a structure does not support inheritance.
Answer: False
4. Question is not clear or detailed enough.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.