1. (TCO 3) Which of the following correctly describes the steps taken to develop
ID: 3670601 • Letter: 1
Question
1. (TCO 3) Which of the following correctly describes the steps taken to develop classes using the object-oriented design process, after we develop a prototype for the user interface?
(Points : 5) Identifying class -> determining the class responsibilities -> determining class interaction -> creating UML diagram
Determining the class responsibilities -> identifying class -> determining class interaction ->
creating UML diagram
Determining the class responsibilities -> determining class interaction -> identifying class ->
creating UML diagram
Creating UML diagram -> identifying class -> determining the class responsibilities -> determining class interaction
public abstract eat();
public abstract void eat();
public void eat();
public void abstract eat();
All of the above
None of the above
(Points : 5) When your old class is a general form of what your new class should be
When you need to create a specialized class from an existing class
None of the above
All of the above
Explanation / Answer
1)
a) Identifying class -> determining the class responsibilites -> determining class interaction -> creating UML diagrams.
2)
b) When you need to create a specialized class from an existing class.
3)
b) Encapsulation
4)
b) Interfaces specify one or more method signatures and atleast one implementation.
5)
b) Abstract methods may be defined in an abstract class, a regular class, or an interface.
6)
b) Object hierarchies
7)
d) None of the above.
8)
d) All of the above.
9)
c) Both A and B.
10)
d) public abstract void drive();
11)
e) None of the methods will be inherented.
12)
b) public abstract void eat();
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.