For each of the following statements, select Yes if the statement is true.

HOTSPOT
You have a base class named Tree with a friend property named color and a protected
property named NumberOfLeaves. In the same project, you also have a class named Person.
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.

HOTSPOT
You have a base class named Tree with a friend property named color and a protected
property named NumberOfLeaves. In the same project, you also have a class named Person.
For each of the following statements, select Yes if the statement is true. Otherwise, select
No. Each correct selection is worth one point.

Answer:

Explanation:



Leave a Reply 4

Your email address will not be published. Required fields are marked *


SirIsaac007

SirIsaac007

Yes = Color properties are public..
No = Person can’t access NumberOfLeaves property because it’s already signed as Protected and Person aren’t derived class from tree..
No = Tree can’t access any private properties in Person since it “Private”..

CMIIW and Sorry for my English..

DB7

DB7

No, Yes, Yes.
BTW, A linked list can be sorted using a custom algorithm, not from an inherent method.