Learn .Net Training from the Best Tutors
Search in
Answered on 03/12/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
Answered on 01/11/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
Answered on 01/12/2022 Learn .Net
Sandeep
Learn .Net Training from the Best Tutors
Answered on 17/10/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
1. Structs are value types whereas Classes are reference types.
2. Structs are stored on the stack whereas Classes are stored on the heap.
3. Value types hold their value in memory where they are declared, but a reference type holds a reference to an object in memory.
4. Value types are destroyed immediately after the scope is lost whereas reference type only destroys the variable after the scope is lost. The object is later destroyed by the garbage collector.
5. When you copy a struct into another struct, a new copy of that struct gets created. The modified struct won't affect the value of the other struct. When you copy a class into another class, it only copies the reference variable.
6. Structs can not have destructors, but classes can have destructors.
7. Structs cannot have explicit parameter-less constructors whereas classes can. Structs don't support inheritance, but classes do. Both support inheritance from an interface.
Answered on 03/12/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
Answered on 18/10/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
Learn .Net Training from the Best Tutors
Answered on 17/10/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
Answered on 30/10/2022 Learn .Net
Harshika Jaiswal
Software Trainer for DOTNET and JAVA
Answered on 01/12/2022 Learn .Net
Sandeep
Learn .Net Training from the Best Tutors
Answered on 20/10/2022 Learn .Net
Praveena
IT focused and seasoned technical trainer with 15+ years of experience in technical training.
UrbanPro.com helps you to connect with the best .Net Training in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for .Net Training Classes are on UrbanPro
The best Tutors for .Net Training Classes are on UrbanPro
Book a Free Demo