Under Section 125 of CrPC, both legitimate and illegitimate children who after attaining majority cannot maintain themselves due to economic hardship are NOT entitled to claim maintenance. Maintenance is only available until the child attains majority. Post-majority maintenance claims are generally not permitted under this section. Option D correctly captures that both categories of children lose maintenance rights after majority.