UML class Java single dispatch.svg
This file is from Wikimedia Commons and may be used by other projects.
The description on its file description page there is shown below.
Summary
Licensing
I, the copyright holder of this work, hereby publish it under the following licence:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication .
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighbouring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.en CC0 Creative Commons Zero, Public Domain Dedication false false
Source code
PlantUML source code.
@startuml
interface Collideable {
void collideWith(Collideable other)
void collideWith(Asteroid asteroid)
void collideWith(Spaceship spaceship)
}
class Asteroid implements Collideable {
+ void collideWith(Collideable other)
+ void collideWith(Asteroid asteroid)
+ void collideWith(Spaceship spaceship)
}
class Spaceship implements Collideable {
+ void collideWith(Collideable other)
+ void collideWith(Asteroid asteroid)
+ void collideWith(Spaceship spaceship)
}
@enduml
British English Add a one-line explanation of what this file represents
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time Thumbnail Dimensions User Comment
current 17:51, 23 May 2023 651 × 267 (8 KB) wikimediacommons>Frap Uploaded own work with UploadWizard
File usage
The following page uses this file:
This file contains additional information, probably added from the digital camera or scanner used to create or digitise it.
If the file has been modified from its original state, some details may not fully reflect the modified file.