4What is the only difference between struct and class in C++?Astruct cannot have methodsBclass cannot have constructorsCDefault access (public for struct, private for class)Dstruct cannot be inheritedView AnswerWorkspaceReportSaveEasy