• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

Question - Are class and structure the same? If not, what's the difference between a class and a structure?

Answer -

No, class and structure are not the same. Though they appear to be similar, they have differences that make them apart. For example, the structure is saved in the stack memory, whereas the class is saved in the heap memory. Also, Data Abstraction cannot be achieved with the help of structure, but with class, Abstraction is majorly used.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners