PrepAway - Latest Free Exam Questions & Answers

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.

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

3 Comments on “For each of the following statements, select Yes if the statement is true.

  1. SirIsaac007 says:

    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..




    1



    0

Leave a Reply