What is the difference between Class and Structure?

Answer Posted / bitdeveloper

<a
href="http://questionscompiled.com/answer.jsp?technology=cpp&qid=141">questionscompiled.com</a>

Classes and Structures in C++ are same except class defaults
to private and structures to public. They can have data
members, member function, this pointer, static member functions.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are arithmetic operators?

546


How would you use the functions memcpy(), memset(), memmove()?

627


What are the benefits of oop in c++?

597


What is an operator function? Describe the function of an operator function?

626


What is polymorphism and its type in c++?

599






Is there structure in c++?

598


Write about the scope resolution operator?

620


Which format specifier is used for printing a pointer value?

586


Why do we need pointers?

587


Is c++ harder than java?

574


How do I make turbo c++ full screen?

593


What is the difference between an external iterator and an internal iterator?

616


Is C++ case sensitive a) False b) Depends on implementation c) True

623


What is the difference between #define debug 0 and #undef debug?

652


Explain the operation of overloading of an assignment operator.

699