You have written the name of the constructor function the wrong way. It has to be Element_ldline instead of Element_ldLine (I guess it's the class name that's wrong).
So the compiler thinks it's a normal member method and wants a return type, void int double ..., that's why you get this error message.