0x6B6F77616C74
0x6B6F77616C74

Reputation: 2629

Interface defined inside a class

How to indicate that an interface is a part of class? Let's take this case as an example.

public class Function
{
     public interface Function2D
     {
            double GetValue(double x);
     }

     ...

}

Talking more precisely - I need to show the relationship between Function and Function2D in an UML class diagram.

Upvotes: 1

Views: 969

Answers (1)

femtoRgon
femtoRgon

Reputation: 33341

This UML Quick Reference gives an indication of how to represent an Inner class in a UML diagram:

Inner Class diagram element

Upvotes: 2

Related Questions