G
G
gitdev2021-05-13 21:52:08
Software design
gitdev, 2021-05-13 21:52:08

Is it worth placing a private method immediately after a public method, provided that this method implements part of the logic of the public method?

There is a private method that implements part of the logic of the public method (encapsulates). Should it be placed immediately after the public method, provided that the private method in this case will be followed by public methods

. If Yes / No, then why.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-05-13
@gitdev

the computer doesn't care where exactly the method is written in the file.
these are exclusively their own ideas about beauty and / or accepted agreements in the team, if any.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question