The DefaultValue attribute is used to set the default value of a WebPart property in SharePoint. However, one should remember to use regular properties instead of automatic properties. The Default value is not saved if automatic properties are used. The following code uses automatic properties to save the Default value. Here the value won't be saved.
Following code used Regular properties to save the Default value. Here the value will be saved properly.