If class Dog has a subclass Retriever, which of the following is true?

A. Because of single inheritance, Dog can have no other subclasses.
B. Because of single inheritance, Retriever can extend no other class except Dog.
C. The relationship between these classes implies that Dog "is-a" Retriever.
D. The relationship between these classes implies that Retriever "has-a" Dog.

Answer: B

Computer Science & Information Technology

You might also like to view...

Your company is preparing to upgrade their intrusion detection systems (IDSs) at three locations in the southeast United States. Three vendors have submitted RFP responses that you must evaluate. Each of the three vendor's RFP responses is in-line with the security and other requirements. What should you do to ensure the IDS platform is appropriate for your company?

A. Develop criteria and rate each IDS based on information in the RFP responses. B. Create a lab environment to evaluate each of the three IDSs. C. Benchmark each IDS's capabilities and experiences with similar sized companies. D. Correlate current industry research with the RFP responses to ensure validity.

Computer Science & Information Technology

What is the type of the value returned by the method isEmpty?

a. bool b. int c. real d. long

Computer Science & Information Technology