Hi!

I am learning object oriented programming and would like a few pointers from the wiser. I would like to make changes to make changes to the table in the database (insert, update, delete record). I am wondering if that is possible to achieve via a class? To have class student and inside defined functions selectStudent, insertStudent and updateStudent(id). The benefit would obviously be to have only one place to look up for the changes in the table structure and not the whole code.

I have seen it done in some examples, but only the result => John.setAge = 23, John.updateStudent(2).

Can you give me some pointers, examples, tutorials, ...? Thank you!