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

describe private access specifiers?

647


Describe new operator?

626


How do you establish an is-a relationship?

625


What are proxy objects in c++?

645


What is c++ in english?

583






What relational operators if statements in c++?

646


What is binary object model?

608


What methods can be overridden in java?

679


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2203


Explain what are accessor methods?

673


What is a hash function c++?

556


What it is and how it might be called (2 methods).

661


What is lazy initialization in c++?

656


Can turbo c++ run c program?

633


What is c++ and its uses?

630