본문 바로가기
Programming/C & C++

C++ Inheritance (public, protected, private)

by leanu 2011. 1. 20.
  • public inheritance : Maintains original type of super class.
  • protected and private inheritance : Changes all types of super class to its inheritance type.

public type
in super class
protected type
in super class
private type
 in super class
 public inheritance public type  protected type private type
 protected inheritance  protected type  protected type   protected type 
 private inheritance private type  private type  private type  


'Programming > C & C++' 카테고리의 다른 글

template 형 typedef  (0) 2011.04.20
function pointer  (0) 2011.02.15
반올림 함수  (0) 2011.01.10
Core 파일을 gdb에 이용하기  (0) 2010.08.09
Memory Leak Issues  (0) 2010.07.08

댓글