employer cover photo
employer logo

Neustar Interview Question

Describe a abstract class and use it in a example

Interview Answer

Anonymous

Apr 27, 2017

Abstract class: A class which cannot be instantiated directly and whose only purpose is derivation. A blueprint of sorts. Example: A user-interface component which has will render a grey rectangle. It must be implemented in a derived type, as business logic dictates all UI controls must be grey. However, a grey rectangle does nothing. :)