check final class inheritance