Of course, you can't access protected method in main! Only member functions of derived classes can access protected members.
Re-read your C++ textbook...
killdude69 commented: Thank you ArkM, for not doing like Siddhant and slandering my oppinion just because you didn't like it. Although your comment may have been passive aggressive, you did it in a way that wasn't too disrespectful. For that, I give you respect. +1
Daria Shmaria commented: helpful, clear, concise +1
tux4life commented: Srry, forgot to tell it :D +7
ArkM 1,090 Postaholic
tux4life commented: Finally someone which just answers his question :) +4