/*
//수평적 다형성의 예
interface Inter{ //데이터나 맴버함수가 없어도 상관없다.
//여러개 클래스의 공통
public void Display();
}
class inter01 implements Inter{
public void Display(){
System.out.println("Inter01 class : ");
}
}
class inter02 implements Inter{
public void Display(){
System.out.println("Inter01 class : ");
}
}
class InterTest implements Inter{
public void Display(){
System.out.println("Inter02 class : ");
}
}
public class Inter03 {
public static void main(String[] args) {
Inter ii;
ii= new inter01(); //자동형변환
ii.Display();
ii= new inter02(); //자동형변환
ii.Display();
ii= new InterTest(); //자동형변환
ii.Display();
}
}
**/
interface AA{
public int i=10;
public void Sub();
}
interface GG extends AA{
public int j=20;
public void Sub1();
}
class MainClass implements GG{
int k=30;
public void Sub(){}
public void Sub1(){}
}
public class Inter04 {
public static void main(String[] args) {
GG b;
b = new MainClass();
System.out.println(b.i);
System.out.println(b.j);
//System.out.println(b.k); //범위: 메모리는 잡혀있지만 접근은 X
System.out.println(((MainClass)b).k);
}
}
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |
|
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |
|
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |
|
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |
|
댓글