Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Constructors and Destructors Practice | Constructors and Destructors
C++ OOP
course content

Course Content

C++ OOP

C++ OOP

1. Fundamentals of OOP
2. Constructors and Destructors
3. Encapsulation Overview
4. Inheritance Overview
5. Polymorphism Overview

Constructors and Destructors Practice

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 9
toggle bottom row

Constructors and Destructors Practice

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 9
toggle bottom row

Constructors and Destructors Practice

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Task

  • Finish the implementation of the ResourceHolder class constructors.
    • Create and implement a default constructor.
    • Create and implement a constructor with parameters.
    • Create and implement a copy constructor.
    • Create and implement a destructor.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 9
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt