Is it because question is incorrect? Someone told me sealed class is final class and you cannot inherit it further and virtual keyword is contradictory, as it can be overridden in child class and that is reason i am receiving this error.