25.8.0
This website uses cookies to ensure you get the best experience on our website. Learn more

OOP in C++: Using Static Members & Destructors

Gaurav singh Yadav

Skillsoft issued completion badges are earned based on viewing the percentage required or receiving a passing score when assessment is required. Static means something different in C++ compared to C. In C, static refers to a storage class for storing specific types of variables. In C++, static refers to member functions and variables associated with the entire class. In this course, learn how to mark a member variable within a class as static, initialize a static member variable, and access it from methods within and outside the class. Next, discover how static member functions can be used for class-level behavior. Finally, learn how to define and use a destructor. After completion of the course, you’ll be able to create and use static variables, access them using the scope resolution operator, and instantiate and deallocate a pointer in constructors and destructors.

Issued on

November 28, 2024

Expires on

Does not expire