
Explore object oriented programming in c++ from basics to advanced concepts like classes and objects, constructors, accessors, overloading, inheritance, static members, and member functions, using Visual Studio.
Explore how C++ adds object oriented programming to C by using classes as types and objects with member variables and functions, including the string class from the standard template library.
Define a class in C++ with a header for prototypes and a source for implementations, using a fraction example with private numerator and denominator and public methods.
Declare a destructor in the public section to automatically free memory by destroying pointers when an object ends its life, using the delete operator for cleanup.
Discover how accessors implement encapsulation in C++ by using get and set functions to control a class's denominator value, enabling object-specific changes without altering the class.
Define operator overloading for a fraction class to support addition and streaming output, implementing operator+ and a display function with ostream to show numerators and denominators.
Define a class member variable with pointers and allocate it with new. Access its members using the arrow operator in constructor and use the this pointer for the current object.
Explore how inheritance lets a derived class reuse a base class's members, reducing code repetition. See public inheritance, constructors not inherited, and overriding display for a soldier.
Demonstrate polymorphism in C++ by implementing a base person class with a pure virtual display method, creating derived soldiers, teachers, and doctors to render class-specific messages.
Learn how to convert class methods to static functions for direct calls via the class name without creating objects, and use friend functions to access private members without accessors.
Explore how object oriented programming applies in the Qt framework to build cross platform graphic user interfaces, using widgets, dialogs, and signals and slots to create interactive applications.