Hey. Tell me the procedure for identifying repeatable code that exists in different classes. What are some problems (here I wanted to inflate the problem in more detail, for example, changing property variables)? If you need to isolate repeatable code within a single class, everything seems to be so clear: select the repeatable section of code into a separate method and use it.
Examples are interested in js or php.