Question: 72. In a UML class diagram, the sharp (#) indicates: a. public access b. protected access within the definition of a constructor for a class,
72. In a UML class diagram, the sharp (#) indicates: a. public access b. protected access within the definition of a constructor for a class, you can use (a) in the same class. a. constructor with appropriate parameters . public static variable c. private access d. package access 73, as a name b. reference variable Inheritance is an example of what type of relationship? a. is-a b. has-a Any new class you create from an existing class is called a(n)- a. base class b. superclass -74. d. this c. was-a d. had-a -75. c. derived class d. extended class there are three classes named Shape, Circle, and square. What is the most likely relationship between them? a. Square is a superclass, and Shape and Circle are subelasses of Square b. Shape is a superclass, and Circle and Square are subclasses of Shape. c. Shape, Circle, and Square are all sibling classes. d. These three classes cannot be related. 77. Parakeet based on the superclass Bird? what is the correct syntax for defining a new class a. class Parakeet isa Birdi ) b. class Bird defines Parakeet c. class Bird hasa Parakeet h d. class Parakeet extends Birdl 1 78. A subclass can directly access c. d. all members of a superclass none of the members of a superclass a. public members of a superclass private members of a superclass What type of inheritance does Java support? a. single inheritance b. double inheritance b. multiple inheritance Java does not support inheritance. 79. c. d. Ifclass 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 "hase, Dog 80. Dog has a subclass Retriever, which ofthe following is true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
