PrepAway - Latest Free Exam Questions & Answers

Which of the following must exist to inherit attributes from a particular class?

Which of the following must exist to inherit attributes from a particular class?

PrepAway - Latest Free Exam Questions & Answers

A.
Public properties

B.
A has-a relationship

C.
An is-a relationship

D.
Static members

Explanation:
Visual Basic has been a pioneer of binary code reuse — controls being the classic example.
You reuse the code in a control by placing an instance of the control on your form. This is
known as a containment relationship or a has-arelationship; that is, the form contains or has
a CommandButton.

5 Comments on “Which of the following must exist to inherit attributes from a particular class?

  1. DB7 says:

    I think A,
    as Is-A is more a model to create a hierarchy, whereas Public properties are compulsory in order to inherit, whether it be Is-a or has-a (for the sake of argument). The answer given above is definetely wrong, and the other site that i was on had Public Properties as the answer for the exact same question.




    0



    0

Leave a Reply