What you said is not good. It is incomplete statement or wrong.
So follow below statement.
"In chemistry, the law of definite proportion, sometimes called Proust's law or the law of definite composition, or law of constant composition states that a given chemical compound always contains its component elements in fixed ratio (by mass) and does not depend on its source and method of preparation".
Hope you feel the difference!