function pointer && inheritance && string example