A class provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter constructor. How many constructors should I write?
David Mccarter
Select an image from your device to upload
One constructor should be enough. Make the string parameter as optional.public class TestClass{public TestClass(string strTest = null){// Your code}} SF