Namespaces | C++ Tutorial

  Рет қаралды 5,106

Portfolio Courses

Portfolio Courses

Күн бұрын

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-fl8ex
@Victor-fl8ex 2 жыл бұрын
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
@PortfolioCourses
@PortfolioCourses 2 жыл бұрын
Hopefully one day, yes. :-)
@andrerossa8553
@andrerossa8553 4 ай бұрын
excelent!!!! tks a lot
@PortfolioCourses
@PortfolioCourses 4 ай бұрын
You’re welcome! :-)
@didiTchu
@didiTchu Жыл бұрын
the greatest
@PortfolioCourses
@PortfolioCourses Жыл бұрын
:-)
@drankkkkkk
@drankkkkkk 2 жыл бұрын
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?
@PortfolioCourses
@PortfolioCourses 2 жыл бұрын
The benefit is to prevent name conflicts, that’s why we use them.
@dead_protagonist
@dead_protagonist 8 ай бұрын
@@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.
@PortfolioCourses
@PortfolioCourses 8 ай бұрын
@@dead_protagonist You can avoid name conflicts by using classes, except for the class names themselves where you can still have name conflicts.
@dead_protagonist
@dead_protagonist 8 ай бұрын
@@PortfolioCourses ty!! that cleared up my confusion :)
@arvindreddy9377
@arvindreddy9377 4 ай бұрын
Can i know the IDE your using?
@PortfolioCourses
@PortfolioCourses 4 ай бұрын
Xcode on MacOS :-)
@arvindreddy9377
@arvindreddy9377 4 ай бұрын
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.
Abstract Classes And Pure Virtual Functions | C++ Tutorial
11:05
Portfolio Courses
Рет қаралды 14 М.
Why 'using namespace std' Is A Bad Practice | C++ Tutorial
15:14
Portfolio Courses
Рет қаралды 9 М.
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 77 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 6 МЛН
Destructor Basics | C++ Tutorial
9:13
Portfolio Courses
Рет қаралды 17 М.
Multiple Inheritance Deep Dive | C++ Tutorial
14:53
Portfolio Courses
Рет қаралды 9 М.
Public And Private Access Specifiers | C++ Tutorial
8:49
Portfolio Courses
Рет қаралды 34 М.
Pure Virtual Destructors | C++ Tutorial
18:12
Portfolio Courses
Рет қаралды 3 М.
Multilevel Inheritance | C++ Tutorial
5:38
Portfolio Courses
Рет қаралды 6 М.
Namespaces in C++
12:37
Neso Academy
Рет қаралды 182 М.
Class Member Functions (aka Methods) | C++ Tutorial
7:18
Portfolio Courses
Рет қаралды 25 М.
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 77 МЛН