The linux shell/bash terminal default behaviour is print output to the terminal (StdOut : Standard output). But sometimes we need to change this behaviour like save toi a file, display noting ... Here some exaple of user case.
The structure of the examples are like: namespace Drupal\mymodule\Tools;
class MyTools extends MyToolsBase {
...
}
...
class MyToolsBase {
public function showClass() {
$class_name = ....
Different between self:: and static (Late Static Bindings)
Static references to the current class like self:: or __CLASS__ are resolved using the class in which the function belongs, as in where it was defined.