What is the difference between Class and Structure?
Answer Posted / deepica
in classes we can declare variables and functions while in structure we can have only functions.In classes we have ACCESS SPECIFIER,while in structures we dont have any.Ic classes no Keyword is used ,while in Structures STRUCT keyword is used.
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is input operator in c++?
Can non graphic characters be used and processed in C++?
Is c++ the most powerful language?
What is the difference between reference and pointer?
Why do we need templates?
what are the types of Member Functions?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What is a namespace in c++?
How many static variables are created if you put one static member into a template class definition?
what are function pointers?
What is the array and initializing arrays in c++?
How is computer programming useful in real life?
What is the use of volatile variable?
What is the use of this pointer in c++?
Is std :: string immutable?