Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 4
    programmers.stackexchange.com/questions/145055/… Commented Jun 14, 2012 at 21:22
  • 7
    C# gives you the best of both via its initializer syntax: MyClass mc = new MyClass { A = a, B = b, C = c, D = d }; Commented Jun 14, 2012 at 21:42
  • 7
    The answer is highly dependent on the programming language. Commented Jun 14, 2012 at 22:08
  • Not enough information. We need to know the usage semantics. Is this really a class that encapsulates its properties or a simple property bag. Commented Jun 14, 2012 at 23:26
  • Huh? I have built many GUI forms and I never had to supply more than 5 arguments. Can you give an example of what you are trying to do with names other than a, b, c, and d? Commented Jun 15, 2012 at 0:31