Computer Science, asked by alli6354, 10 months ago

What are the similarities and differences between a class and a structure?

Answers

Answered by afsardaniya5
1

Answer:

Structures are value types and classesare reference types. So structures use stack and classes use heap.Structures members cannot be declared as protected, but classmembers can be. ... Objects created from classes are terminated using Garbage collector.

Similar questions