vendredi 5 avril 2019

What is the use case of making the main function as friend under a class?

I was going through some C++ concept and came across private virtual functions. While exploring the same I came across someone suggestion to include main() as friend in the base class to get it compiled. I really dont understand this entire thing. Hope someone can help. Thanks.

Aucun commentaire:

Enregistrer un commentaire