1.

What is the exact difference in the view model in MVVM and controller in MVC? Which pattern is preferable keeping in mind the code unit test coverage?

Answer»
  • name SAM Smith
  • name John

Explanation: employee3 is a struct, and we ASSIGN  employees2 = employees separate array in memory is CREATED in the memory.  And when we add emp3 in employees it is not reflected in employees2. But emp1 and emp2 are reference TYPES. So if we change employees[0].name = "Sam Smith"   employees2[0] is also changed as they refer to the same OBJECT



Discussion

No Comment Found

Related InterviewSolutions