No thats not like your are thinking....
A constant function has .....only one value in its domain.....
Maxima and minima is defined.....when you get some peak or down in curve...i mean....some value of function exceed with other value...and some lag behind...which give rise to a single point where you will get the maximum value of function and a single point where you will get a minimum...
In case of Constant function......you don't get any peak or down....neither you get any point for comparing....so it is said that maxima and minima for a constant function is undefined....
ALthough df(x)/dx = 0 for constant function ....and also..it is zero every where...it means ..everywhere constant function is maximum or everywhere it is minimum....this is simply a ridiculous case...and thus it is an undefined case ..