Modify digitalWrite

thank your for your answer.
You are right. I can create the object for the user and he will be able to use it.
However, I don't want the user to use this object. With that solution, the user has to do

myObject.digitalWrite();

to control the digital outputs.

I just want the user to write digitalWrite();
and it will be the function digitalWrite() that will use this object internally, hiding those details from the user.