Method argument cannot be "static" in principle. The term "static" does not mean "not dynamic" it means "not instance" for members and "having no instance members" for a type. You have nothing static in your code (except static
Main
) which is irrelevant. The question as is makes no sense at all.
If you have compilation error with the line
public Child(int _x, int _y) : base(int D,int E)
, this is only because
D
and
E
are not declared. Of course, how else? There is nothing about "static" or "dynamic" here; and your understanding of these terms is totally incorrect. Please see also my comment to the question.
For some basic education on this simple matter, please see these discussions:
What makes static methods accessible?[
^],
C# windows base this key word related and its uses in the application[
^].
—SA