How to Change Default Location of Datafile, Logfile and Backup in SQL Server

We can change the Default locations in the above picture and restart the instance