Z:gnu-www-ja-gpl-2.0-faq--7ebd86-Subclassing is creating a deri/en

Subclassing is creating a derivative work. Therefore, the terms of the GPL affect the whole program where you create a subclass of a GPL'ed class.