What is the difference between structure and class?

AnswerBot
1y

Structures are value types while classes are reference types.

  • Structures are allocated on stack while classes are allocated on heap.

  • Structures do not support inheritance while classes do.

  • Structures can...read more

jameel abdulrasheed
7mo
I completed to account payable in invoice process to kiwi Ao and supplier and invoice site and invoice date and invoice number due date and invoice amount and vat. Because account received in sap to i...read more
Lakshmi
2y

A structure is collection of variables different types under a single unit.

A class is a user defined blue print from which objects are created. 

Add answer anonymously...
Cognizant Programmer Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter