Nusrat Nuriyev
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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++?
>>> 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So, struct and class in C++ are almost identical. Fantastico! :)
ASKER
BTW, you have answered to the 11-th question:
11. Can we use public and private in structures? :)
11. Can we use public and private in structures? :)
Haven't even seen it :-D
as it would have any methods, so would be inaccessible
are these home/course work questions