Learn what namespaces are and how they work in C++. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!
Пікірлер: 16
@Victor-fl8ex2 жыл бұрын
Ayo kevin, good work once again. I wanna ask you, are you planning doing a "big" project where you include all the stuff we have been learning along the way and document it from finish to end? For example a simple game, c++ interfaces, or smth like that
@PortfolioCourses2 жыл бұрын
Hopefully one day, yes. :-)
@andrerossa85534 ай бұрын
excelent!!!! tks a lot
@PortfolioCourses4 ай бұрын
You’re welcome! :-)
@didiTchu Жыл бұрын
the greatest
@PortfolioCourses Жыл бұрын
:-)
@drankkkkkk2 жыл бұрын
When would you ever use a namespace, let's say, over a class or a struct? What are the actual benefits to using a namespace in general?
@PortfolioCourses2 жыл бұрын
The benefit is to prevent name conflicts, that’s why we use them.
@dead_protagonist8 ай бұрын
@@PortfolioCourses yeah but can't you avoid name conflicts by using classes?? edit: I may be wrong but from what I understand, you would typically use a namespace to organize functions, variables, or classes that don't need to be associated with objects. You would put a class into a namespace to avoid naming conflicts between classes, so if a class has the same name as another class, you wouldn't have any problems if they were within their own namespace.
@PortfolioCourses8 ай бұрын
@@dead_protagonist You can avoid name conflicts by using classes, except for the class names themselves where you can still have name conflicts.
@dead_protagonist8 ай бұрын
@@PortfolioCourses ty!! that cleared up my confusion :)
@arvindreddy93774 ай бұрын
Can i know the IDE your using?
@PortfolioCourses4 ай бұрын
Xcode on MacOS :-)
@arvindreddy93774 ай бұрын
Thanks 🙏🏻 lot of people say cpp is hard don't learn it but your way of explanation and that scale of detailed explanation brought an intrest in me to learn cpp. Tq the best cpp videos i have ever seen.