File:UML class diagram with access modifiers.svg

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Original file(SVG file, nominally 516 × 159 pixels, file size: 7 KB)

Summary

Description
English: UML class diagram which showcase public, protected and private fields and methods.
Date
Source Own work
Author Frap

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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 neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Source code

PlantUML source code.

@startuml
class Example
{
    +Foo
    #Bar
    -Baz
    +Foo()
    #Bar()
    -Baz()
}

note left of Example::Foo
  This field is public
end note

note left of Example::Bar
  This field is protected
end note

note left of Example::Baz
  This field is private
end note

note right of Example::Foo()
  This method is public
end note

note right of Example::Bar()
  This method is protected
end note

note right of Example::Baz()
  This method is private
end note
@enduml

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

17 May 2023

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:20, 17 May 2023Thumbnail for version as of 15:20, 17 May 2023516 × 159 (7 KB)FrapUploaded own work with UploadWizard

There are no pages that use this file.

Global file usage

The following other wikis use this file:

Metadata