CS FundamentalsModerateIBM · Deloitte pattern
A class diagram shows Shape as an abstract class with an italicized name and an italicized method `+ area(): double`, and Circle, Square as concrete subclasses. What does the italics convey?
- A. Italics mean the method is static
- B. Italics indicate the method is private
- C. Shape is an abstract class and area() is an abstract (unimplemented) method that concrete subclasses must override
- D. Italics indicate the class and method are deprecated
Correct answer: C. Shape is an abstract class and area() is an abstract (unimplemented) method that concrete subclasses must override
UML convention: italicizing a class name marks it abstract, and italicizing an operation marks it as abstract (no body in that class), requiring concrete subclasses to provide an implementation.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- In a sequence diagram, a long thin rectangle drawn on top of a lifeline is called an activation bar (execution occurrence). What does its…
- A class diagram shows Employee with attribute - salary: double and operation + getSalary(): double. What do the leading - and + symbols…
- A sequence diagram shows a loop combined fragment labelled loop [for each item in cart] wrapping a single message validateItem(item) sent…
- A class diagram shows Vehicle as a superclass with a generalization (hollow triangle arrow) pointing from Car and Truck up to Vehicle. If…
- Using basic COCOMO for a semi-detached project (E = 3 × KLOC^1.12 person-months), what is the estimated effort for a 45 KLOC project?
- A control flow graph has 28 edges and 20 nodes. What is its cyclomatic complexity?