FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DesignPatterns/Bridge/src/Main.java at master · feisuo/DesignPatterns · GitHub
feisuo
/
DesignPatterns
Public
forked from
hazukac/DesignPatterns
Notifications
You must be signed in to change notification settings
Fork
2
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
DesignPatterns
/
Bridge
/
src
/
Main.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (11 loc) · 384 Bytes
Breadcrumbs
DesignPatterns
/
Bridge
/
src
/
Main.java
Copy path
File metadata and controls
12 lines (11 loc) · 384 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
public
class
Main
{
public
static
void
main
(
String
[]
args
) {
Display
d1
=
new
Display
(
new
StringDisplayImpl
(
"Hello"
));
Display
d2
=
new
CountDisplay
(
new
StringDisplayImpl
(
"aaaaaaa"
));
CountDisplay
d3
=
new
CountDisplay
(
new
StringDisplayImpl
(
"hogeee"
));
d1
.
display
();
d2
.
display
();
d3
.
display
();
d3
.
multiDisplay
(
5
);
}
}
Back
|
FazBrowse Home
|
New Git URL