[프로그래밍] 완전하게 다른 뜻으로 쓰이는 subclass
컴퓨터 프로그래밍에서 subclass는 명사와 동사 모두로 쓰인다. 말 그대로 상속 클래스를 뜻한다. derived class와 같은 용어다. base class를 상속하여 생긴 클래스다. 대표적인 예가 아래 코드에서 Form1이다.
Form1: Form;
Instead of creating a partial class that is based on x:Class, the provided x:Class is created as an intermediate class, and then your provided derived class is expected to be based on x:Class.
x:Subclass Directive
이게 완전하게 다른 뜻으로도 자주 쓰여서 혼란스럽다.
Subclassing is a technique that allows an application to intercept and process messages sent or posted to a particular window before the window has a chance to process them.
Window Procedure Subclassing
가로챈다는 의미다. 예를 들어 WinUi에는 WndProc이 없어서 윈도우즈 메시지를 바로 처리할 수 없다. 이걸 가로채서 처리한다.