How can I create a copy of an object in Python?

To get a fully independent copy of an object you can use the copy.deepcopy() function. For more details about shallow and deep copying please refer to the other answers to this question and the nice explanation in this answer to a related question.

What is a “driver class”?

A “Driver class” is often just the class that contains a main. In a real project, you may often have numerous “Driver classes” for testing and whatnot, or you can build a main into any of your objects and select the runnable class through your IDE, or by simply specifying “java classname.”

Separating class code into a header and cpp file

The class declaration goes into the header file. It is important that you add the #ifndef  include guards. Most compilers now also support #pragma once. Also I have omitted the private, by default C++ class members are private. and the implementation goes in the CPP file:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)