Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the differences between a struct and a class in
C++?

Answer Posted / ajit

In structures by default the member variables considered as
public where as in classes by default data members are
considered as private.
Structures doesn't provide the concept data encapsulation
but classes provides it.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can create new c++ operators?

1032


Is sorted c++?

1117


What is the difference between the indirection operator and the address of oper-ator?

1120


Define anonymous class.

1083


Show the declaration for a pointer to function returning long and taking an integer parameter.

1147


What are c++ templates used for?

1136


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2017


When you overload member functions, in what ways must they differ?

1049


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

2228


What is struct c++?

1006


To what does “event-driven” refer?

1062


What relational operators if statements in c++?

1180


Is c++ a pure oop language?

1085


What does scope resolution operator do?

1118


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1067