What are the similarities and differences between a class and a structure?
Answers
Answered by
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
English,
5 months ago
History,
5 months ago
Environmental Sciences,
11 months ago
Environmental Sciences,
1 year ago