Do you mean direct/indirect objects as in French grammar: Le père donne la clé à la voisine ("The father gives the key to the neighbour"; father: subject, key: direct object, neighbour: indirect object)?
Corresponding OO code:
father.give(key, neighbour)
And objects (in the grammatical sense) with preposition could be understood to correspond to keyword arguments: father.give(key, to=neighbour)
Now if we introduced cases to a programming language...