Either remove line 15 from your first code snippet or line 9 from the second. OB1.information() is being called twice and, as such, class1::setLayout(point) is being called twice, which is what the error is referring to.
This is pretty basic C++ stuff. It would be beneficial to make sure you've got the very basics down before embarking on a large project.