MathWorks Interview Question

C/C++: Lots of program on classes to determine output, whether it will compile? Focus: Operator overloading, Virtual functions, Constructors: A sample is given below:(determine whether it will compile) class xyz { \\somethings here }; int main() { xyz s1=new xyz(100); xyz s2=s1; s2.function(); delete s1; } Very easy for comp. sci. ppl