Vector class problem

why we are using empty constructor in this problem

@mohitshendre2609,
Just for better understanding. It would work even if you don’t write a empty constructor.