BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OMG-OCUP2-FOUND100 Exam - Topic 5 Question 52 Discussion

Posted by Ena on Oct 01, 2026 at 02:29 PM

Choose the correct answer:

Which elements in the diagram are Features of the Car class?

Suggested Answer: D

In UML, the features of a class are the combined set of attributes (properties) and operations (methods) that are defined for that class. A feature is a characteristic that classifiers (like classes) can possess. In the context of UML, operations are considered behavioral features, while attributes are considered structural features.

Let's analyze the given options in the context of the Car class:

A . 'drive()' is an operation (method) of the Car class, but 'Car' itself is the name of the class, not a feature.

B . 'stop()' is an operation of the Car class, but 'driver' is a role name for an association, not a feature of the Car class.

C . 'name' is an attribute of the Person class, not the Car class. 'stop()' is indeed an operation of the Car class.

D . 'drive()' and 'stop()' are operations of the Car class. 'Person' is not a feature of the Car class, but no attributes of the Car class are shown in the diagram, and since features include both operations and attributes, the correct answer from the available options is D. It is understood that operations of a class are features, so the answer includes both operations of the Car class: 'drive()' and 'stop()'.

According to the UML 2 Foundation specification, both structural features (attributes) and behavioral features (operations) are considered features of a class, so the correct answer would be the operations 'drive()' and 'stop()' since those are the only features explicitly represented in the Car class in the diagram.


Get Premium OMG-OCUP2-FOUND100 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
FE
Fernanda 5 hours ago
Totally agree with A!
HE
Herminia 5 days ago
A) drive() and Car are definitely features.
LA
Lazaro 11 days ago
Surprised that people are unsure about this!
AD
Adelle 16 days ago
I thought driver was a feature, not a class element.
BE
Bethanie 21 days ago
Wait, what about B? Seems like it could work too.
SH
Sherly 26 days ago
Totally agree, that's the right choice!
FR
Frederica 1 month ago
A) drive(), Car is correct!
LY
Lyda 1 month ago
I think "name" might be an attribute, but I can't recall if it's considered a feature in this context.
LO
Lorrie 1 month ago
I feel like "drive()" and "stop()" are definitely methods, but I'm confused about the other elements.
JA
Jacki 2 months ago
I remember practicing a similar question where we had to identify methods versus attributes. I hope I can apply that here.
CR
Craig 2 months ago
I think the features of the Car class should be the methods, but I'm not sure if "driver" counts as a feature.
0/2000 characters

Save Cancel