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
Social Sciences,
5 months ago
English,
5 months ago
Science,
5 months ago
Environmental Sciences,
10 months ago
Environmental Sciences,
1 year ago