Use the word bank to fill in the blanks of the following statements 1. is an Oop
ID: 3681344 • Letter: U
Question
Use the word bank to fill in the blanks of the following statements 1. is an Oop concept that hides the data from direct manipulation. 2. A class uses a constructor to initialize member variables without the use of parameters. 3. functions are used to retrieve member variables' values, while functions are used to store values in member variables. 4. The compiler creates a(n) and a(n) for every class if they are not provided by the programmer. 5. Class are by default. 6. A member function declared as is accessible only by the class, derived classes and friends. 7. A class can have several : however, they cannot be ambiguous.Explanation / Answer
1.Encapsulation :
Encapsulation can be used to hide data members and members function... Under this definition, encapsulation means that the internal representation of an object is generally hidden from view outside of the object's definition
2.
4. constructor and destructor
5. private
6. friend
Friends are functions or classes declared with the friend keyword.
A non-member function can access the private and protected members of a class if it is declared a friend of that class. That is done by including a declaration of this external function within the class, and preceding it with the keywordfriend
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.