Added support for virtual and pure-virtual methods.