Does a class diagram always need attributes?

Viewed 7952

So, I do understand that a class can have attribute(s) and method(s).

1) Would it be possible if a class has a method but no attribute? (this seems impossible, it seems to me that it defeats the purpose of creating the class)

2) Would it be possible if a class with attribute(s) but no method? (this seems possible)

Thanks a lot!

3 Answers
Related