Open cathylee12 opened 1 year ago
Is there an example to illustrate this function? Currently, constructors are supported.
Yes, so for example, in ExampleConstructor class, if I don't explicitly declare public ExampleConstructor(), <\
I compared with two different source code, one with the declaration of the constructor and one without it.
package example;
public class ExampleClass {
}
package example;
public class ExampleClassWithConstructor {
public ExampleClassWithConstructor() {
}
}
The diagram output is like this.
@startuml
class example.ExampleClass {
}
class example.ExampleClassWithConstructor {
+ <<Create>> ExampleClassWithConstructor()
}
@enduml
Here is the link describing a default constructor. https://www.scaler.com/topics/default-constructor-in-java/
I would like to display the default constructors in the diagram, as well, for the consistency. If you agree, I can try to add the feature.