OOP in C++: Copy Constructors, Nested Classes, & Namespaces
C++
| Intermediate
- 13 videos | 1h 42m 57s
- Includes Assessment
- Earns a Badge
A copy constructor in C++ classes is a specialized method used to create an object from another object of the same class. Other specialized C++ methods include nested classes and namespaces, which organize different classes in a logical and coherent manner while avoiding name conflicts. In this course, learn how to specify and use a copy constructor. Next, discover how classes and functions can be marked as friends. Finally, examine how nested classes can be defined and used in C++ and practice using namespaces to modularize your code. After completion of the course, you'll be able to create and implement a custom copy constructor, access private variables using friend functions and classes, and store functions and classes in namespaces.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseCreate copies of objects using c++'s default copy constructorImplement a custom copy constructorUse pass-by-value and pass-by-reference semantics with objectsCreate a copy of an object containing pointersIdentify the errors that can result from using the default copy constructorImplement copy constructors for a class containing pointers
-
Access private variables using friend functions and classesCreate private and public nested classesIdentify and use the global namespaceStore functions and classes in namespacesCreate and reference namespacesSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 7s
-
8m 23s
-
7m 29s
-
6m 44s
-
7m 45s
-
9m 16s
-
5m 22s
-
11m 10s
-
10m 59s
-
8m 14s
-
10m 54s
-
11m 15s
-
3m 20s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.