Question: What is the difference between a constructor and a function?
Instructor answer: A constructor is called whenever an object is created, whereas a function needs to be called explicitely. Constructors do not have return type, but functions have to indicate a return type.

Student answer: A constructor initializes an object or objects of a class.  A function of a class performs a task such as display a line of text or do some kind of mathematical operations.
Score (0-5): 2.5

Student answer: all constructors are functions but not all functions are constructors. Also functions can have nearly infinite purposes, while constructors always create an instance of whichever class you are using. You can change how a constructor does something but not what it does. With functions you can change not only the how but also the what.
Score (0-5): 3

Student answer: Unlike regular functions, constructors are only used to initialize an object’s data when it is created. Constructors must also be given the same name as the class and cannot return any values.<br>
Score (0-5): 5

Student answer: A constructor typically used to intialize data members and allocate resources, for instance memory, files, etc.  Also a constructor cannot return values.  Functions are operations that maybe globally defined.
Score (0-5): 4.5

Student answer: Constructors cannot return values, so they cannot specify a return type. Normally, constructors are declared public.
Score (0-5): 4

Student answer: A constructor is a method that starts new instances of a class. (Example: Employee employee1(parameters) starts a new instance of object of type Employee). A function is simply a module w/in a program that completes its single desired task.
Score (0-5): 3

Student answer: A constructor is called whenever a new object of that class is made.
Score (0-5): 3.5

Student answer: A constructor does not return any date and has no return type.<br><br>Functions can return date or not return data can have a return type.
Score (0-5): 4

Student answer: A constructor is automatically called whenever an instance of a class is created, a function must be explicitly called by the user.
Score (0-5): 4

Student answer: constructors cannot return values, so they cannot specify a return type like functions can.
Score (0-5): 4

Student answer: A constructor is a function used to initialize an object's data when it is created.
Score (0-5): 3.5

Student answer: a constructor initialises everything so that nothing is left empty or with random varioubles and a function modifies those variables with data.
Score (0-5): 2.5

Student answer: A constructor initialized values at the execution of its instantiation. It provides default values.
Score (0-5): 3.5

Student answer: A constructor sets up the default values of variables when an object is instantiated, whereas a function allows interaction with that object.
Score (0-5): 4

Student answer: A constructor is used to create an object that can be employed in the main function of a program.  This may or may not execute code along with it.<br><br>A function is a set of code that executes when called, but does not create a new object.
Score (0-5): 3

Student answer: a constructor initializes data members but the functions actually perform tasks. Constructors cant return values either.
Score (0-5): 4

Student answer: a constructor does not need a type, and it is used to initialize the variables.
Score (0-5): 3.5

Student answer: Constructors don't have a return type.
Score (0-5): 4

Student answer: constructor creates the class object into memory where functions perform actions against that object
Score (0-5): 3

Student answer: constructors cannot return values
Score (0-5): 4

Student answer: A constructor initializes values and a function usual performs some sort of operation.
Score (0-5): 2.5

Student answer: A constructor is a function used to initialize an object's data when it is created. It's call is made implicitly when the object is created and must be defined with the same name as the class. Constructor also cannot return a value like a function can.
Score (0-5): 5

Student answer: A constructor is used to create an instance of a class and has the same name as that class. A function cannot have the same name as a class and computes data.
Score (0-5): 4

Student answer: a constructor is a function that initializes a class instance, a function performs whatever task it is written for
Score (0-5): 3

Student answer: A constructor cannot return values, not even void, but function get a return value.
Score (0-5): 4

Student answer: a constructor cannot return values, its not even void. it is used to initialize an object's data when it is created.<br>whereas, a function is created to do a specific task, and it can return values.
Score (0-5): 5

Student answer: A constructor initializes an object. A function is part of an object.
Score (0-5): 2.5

Student answer: constructors initialize the data that is then used in the calculations of a <br><br>function
Score (0-5): 2.5

Student answer: a constructor is called when the class is created, a function can be called any time.
Score (0-5): 3.5

Student answer: constructor is a special block of statements called when an object is created, either when it is declared statically or constructed on the stack. However a function is a portion of code within a larger program, which performs a specific task and independent to the rest of the code.
Score (0-5): 4