Static typing VS Dynamic typing
=>
Compile time에 variable type이 결정 되는 것이 Static typing 이고
Run time에 variable type이 결정 되는 것이 Dynamic typing 이다
예를 들어,
int a,b;
요런 것은 컴파일 과정에서 a,b는 이미 int라는 형태를 가지고 실행과정에서 그대로 적용되는데
template 같은 것을 사용한 경우엔 실행 과정에 입력된 값에 따라 type이 달라 질 수가 있다
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment