Data members are commonly declared as private, called ______, which is good soft
ID: 3865790 • Letter: D
Question
Data members are commonly declared as private, called ______, which is good software engineering. Public member functions provide the _______ with the outside world through their parameter lists and the returned data. Dynamically created object (using the new operator) can only be destroy by using the ______ operator. A derived class represents a ___ with respect to its base class i. more generalized object ii. more specialized object iii. less generalized object iv. less specialized object Which two of the following statements about inheritance are true? i. An object of the base class is also an object of its derived class. ii. An object of the base class is not an object of it derived class. iii. An object of the derived class is also an object of its base class. iv. An object of the derived class is not an object of its base class. Which one of the following statements about inheritance is false? i. When a nonmember function is passed an object of a derived class, the nonmember function cannot access any of the base class's members if the inheritance is either protected or private. ii. A private member function of a class cannot access the public members of the class. iii. When a nonmember function is passed an object of a derived class, the nonmember function can access any of the base class's members via an object of the derived class, if the inheritance is public. iv. A protected member function of a class can access all members of the class. Which one of the following statements about inheritance is false?Explanation / Answer
8.K
Answer: fields
data members are commonly declared as private, called fields which is a good software engineering
8.l
Answer: Communication
public members functions provide the communication with the outside world through their parameter lists and the returned data
8.m
Answer: delete
dynamically created object(using new operator) can only be detroy by using the delete operator because with this operator we delete/destroy the created objects to free up the memory.
9)
Answer: option 2
a derived class represents a more specialized object with respect to its base class because it is extending the properties of its base class.
10)
Answer: option 3
an object of the derived class is also an object of its base class because with the help of derived class object we can access the members and methods of its super class.
11)
Answer: option 2
a private member function of a class cannot access the public members of the class because a private member can access public memebers of a class bacause they are public in nature so anybody can access.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.