[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
Constructor doesn't give return value!.
Yes, we can pass pointer as parameter and get value. But it's not good shape.
So, we shouldn't write code that may prevent class from instanciation in constructor. And, we may need additional interface for initializing that can give return value - like 'int init()'.
Constructor doesn't give return value!.
Yes, we can pass pointer as parameter and get value. But it's not good shape.
So, we shouldn't write code that may prevent class from instanciation in constructor. And, we may need additional interface for initializing that can give return value - like 'int init()'.
'Language > C&C++' 카테고리의 다른 글
[C/C++] classifing function return value type... (0) | 2009.09.02 |
---|---|
[C/C++] new operator... deeper.... (0) | 2009.08.24 |
[C/C++] 'const' keyword. (0) | 2009.03.11 |
[C/C++] What is 'variable'?? (0) | 2009.01.24 |
[C/C++] Try to avoid cross-dependency between selective-compile-switches. (0) | 2008.12.14 |