Drupal 8 Devel module has an integrated switch user block. This function allow you to switch users without logout/login (for the selected roles) and without entering user name and password. To activate a this block.
Features is a drupal contrib module enables the capture and management of features in Drupal, by providing a UI and API for taking different site building components from modules with exportables and bundling them together in a single feature module.
Hooks allow modules to alter the drupal core behavior or another module. Hooks are discovered and called at specific times to alter or add to the base behavior or data (invoking the hook). Each hook has a name start with hook_ (Ex; hook_menu()).