We know it is not a good practice changing core files or any contributed files directly. But..
Drupal 8 allows creating custom block with the help of oops concepts. Each block in drupal 8 should..
The modules in drupal 8 placed inside /modules directory. Both contributed and custom modules..