@startuml abstract class Vehicle { {field} Year : Long {field} Make : String {field} Model : String {field} Odometer : Long {abstract} accept(IWorkTask t) } abstract class Honda extends Vehicle{ {field} Make: String = "Honda" } class CRV extends Honda { {method} void accept(IWorkTask t) } abstract class VehiclePart{ {field} cost: Double } class AirFilter extends VehiclePart { } class HondaCrvAirFilter extends AirFilter { } class SyntheticOil extends VehiclePart { } interface IWorkTask { {method} getCostForHonda(CRV c); {method} getPartsForHonda(CRV h); } class OilChange implements IWorkTask { {method} getCostForHonda(CRV c); {method} getPartsForHonda(CRV h); } class TireRotation implements IWorkTask { {method} getCostForHonda(CRV c); {method} getPartsForHonda(CRV h); } class AirFilterChange implements IWorkTask { {method} getCostForHonda(CRV c); {method} getPartsForHonda(CRV h); } @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art