protected 가상 멤버 함수

[Basic C++] #15_오버라이딩의 특수한 경우 세 번째 C++ 개발에서 오버라이딩을 사용 시 주의할 점에 대해서 알아보겠습니다. "전문가를 위한 C"의 9 항목, "클래스 상속 활용 테크닉"에 해당하는 내용입니다. private 또는 protected 가상 멤버 함수를 오버라이드 할 경우 class Times { public: virtual int getTimesResult() const {return getDeafualtOperand() * getInputOperand;}// 디폴트 Operands 값 * 인자로 들어온 operands void setInputOperand (int i) {inputOperand = i;} void getInputOperand () {reutrn inputOper..
Hardii2
'protected 가상 멤버 함수' 태그의 글 목록