Dear Student , When the capacitor is connected to a DC source , It gets charged , and as battery is disconnected so no more charge can flow . So Charge will be constant because when battery is disconnected there is no path for charge to flow. Regards!