I have been asked this question in a job interview, but not sure what are the other options available in C# to create an object of a class. I know the basic way to create an object. For example: I have a class with name 'ClassName', so to create the object, I can use
ClassName classNameObject = new ClassName();
Can someone please tell me what are other ways which can be used to instantiate a class? Thanks in advance!