add compare for abstract class and interface