notice and an opportunity to be heard — Legal Definition, Examples & Cases