상속,inheritance

Redirected from page "상속"

QQQ
이건 필연적으로 항상 트리,tree구조? 아님 예외가 있는지?
- 다중상속에 다이아구조 생각해보면 아님.. (부모가 둘 이상이 가능하므로)

Sub:
단일상속,single_inheritance =단일상속,single_inheritance =,single_inheritance 단일상속 single_inheritance
{
단일상속 single inheritance

superclass가 오직 하나뿐인 상속,inheritance?


다중상속,multiple_inheritance =다중상속,multiple_inheritance =,multiple_inheritance . 다중상속 multiple_inheritance
{
다중상속 multiple inheritance

superclass가 둘 이상 있을 수 있는



가상상속,virtual_inheritance =가상상속,virtual_inheritance =,virtual_inheritance 가상상속 virtual_inheritance
{
가상상속 virtual inheritance







오버로딩,overloading = function_overloading or method_overloading
{
가상함수,virtual_function / 가상메소드,virtual_method와 혼동하지 말라. - cmp



https://zetawiki.com/wiki/Is-a,_has-a
is_a have_a
inheritance aggregation/composition .... 저것들 pagename TBD. NdEn:aggregation NdEn:composition Zeta:객체_컴포지션,_애그리게이션
rel.
↑ superclass
↓ subclass



CSS에서 상속
부모 요소,element에 적용된 속성,attribute
자식 요소에도 자동으로 적용되는 현상이다.
예를 들어 <html> 안에 <body> 안에 <h1> 이 있는 HTML 문서에선 <html>에 적용된 스타일,style은 자동으로 <body>와 <h1>로 상속된다.






Up: OO