Ask Question
25 November, 14:32

What is the main difference between a struct and a class?

+5
Answers (1)
  1. 25 November, 15:24
    0
    A class encapsulates methods, while a struct cannot.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the main difference between a struct and a class? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers