Why deriving from "Class" class is denied?