What is the difference between Class and Structure?

Answer Posted / vinod

The difference between a class and a structure is that, by
default, all of the members of a class are private and also private,public and protected but in structure by
default, all of the members of a structure are public.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of comments are there in c++?

581


What are the differences between malloc() and calloc()?

617


What does obj stand for?

635


When we use Abstract Class and when we use Interface?where we will implement in real time?

1672


What do you mean by function overriding & function overloading in c++?

606






What is the use of this pointer in c++?

574


How to give an alternate name to a namespace?

593


Define what is constructor?

590


What is type of 'this' pointer?

603


What is the difference between delegation and implemented-in-terms-of?

529


Write my own zero-argument manipulator that should work same as hex?

589


What is the main function c++?

605


daily Routine of father

917


What is lambda in c++?

582


What is static class data?

579