Monday, 4 September 2023

Using the extends keyword to specify class extension relationships in PlantUML

Using ‘extends’ keyword, we can specify the extension relationship.

extends.txt

@startuml

interface List{

}

class AbstractList implements List{

}

class ArrayList extends AbstractList{

}

class LinkedList extends AbstractList{

}
	
@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment