OOP in C++: Copy Constructors, Nested Classes, & Namespaces

C++    |    Intermediate
  • 13 videos | 1h 42m 57s
  • Includes Assessment
  • Earns a Badge
Rating 4.7 of 7 users Rating 4.7 of 7 users (7)
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 course
    Create copies of objects using c++'s default copy constructor
    Implement a custom copy constructor
    Use pass-by-value and pass-by-reference semantics with objects
    Create a copy of an object containing pointers
    Identify the errors that can result from using the default copy constructor
    Implement copy constructors for a class containing pointers
  • Access private variables using friend functions and classes
    Create private and public nested classes
    Identify and use the global namespace
    Store functions and classes in namespaces
    Create and reference namespaces
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 7s
  • 8m 23s
  • Locked
    3.  Implementing Copy Constructors
    7m 29s
  • Locked
    4.  Using Pass-by-value and Reference with Objects
    6m 44s
  • Locked
    5.  Creating Required Copy Constructors
    7m 45s
  • Locked
    6.  Identifying Default Copy Constructor Errors
    9m 16s
  • Locked
    7.  Implementing Copy Constructors for Object Pointers
    5m 22s
  • Locked
    8.  Creating Friend Functions and Classes
    11m 10s
  • Locked
    9.  Creating Nested Classes
    10m 59s
  • Locked
    10.  Implementing Namespaces
    8m 14s
  • Locked
    11.  Storing Functions and Classes in Namespaces
    10m 54s
  • Locked
    12.  Creating and Referencing Namespaces
    11m 15s
  • Locked
    13.  Course Summary
    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.

YOU MIGHT ALSO LIKE

Rating 4.2 of 111 users Rating 4.2 of 111 users (111)
Rating 4.5 of 6 users Rating 4.5 of 6 users (6)
Rating 4.5 of 8 users Rating 4.5 of 8 users (8)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 14 users Rating 4.4 of 14 users (14)
Rating 4.2 of 111 users Rating 4.2 of 111 users (111)
Rating 4.5 of 44 users Rating 4.5 of 44 users (44)