Link to home
Start Free TrialLog in
Avatar of Nusrat Nuriyev
Nusrat NuriyevFlag for Azerbaijan

asked on

6. Can we say that a structure is a class? What is the difference between class and structure?

Can we say that a structure is a class? What is the difference between class and structure?
SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
not usefully

as it would have any methods, so would be inaccessible

are these home/course work questions
Avatar of Nusrat Nuriyev

ASKER

>>> not usefully

>>> as it would have any methods, so would be inaccessible

Don't get this.

>>> are these home/course work questions
No, I'm a C programming language teacher, and I want to learn C++ by asking simple questions. Ability to answer to simple questions tells us who is an expert and who is not.

Additional question:
Is the any difference between struct in C and struct in C++?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So, struct and class in C++ are almost identical. Fantastico! :)
BTW, you have answered to the 11-th question:
11. Can we use  public and private in structures? :)
Haven't even seen it :-D