Ask Question
12 December, 07:00

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

+4
Answers (1)
  1. 12 December, 07:06
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers