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?

  1. A. Italics mean the method is static
  2. B. Italics indicate the method is private
  3. C. Shape is an abstract class and area() is an abstract (unimplemented) method that concrete subclasses must override
  4. 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.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic