Question: What is the difference between a C + + struct and class? Question 1 options: 1 ) A class cannot access functions from iostream.h 2
What is the difference between a C struct and class?
Question options:
A class cannot access functions from iostream.h
A struct cannot access functions from iostream.h
In a struct the default accessibility is public, whereas in classes the default is private
There is no difference
A struct cannot have private members
None of the other options
In a struct the default accessibility is private, whereas in classes the default is public
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
