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 is the Difference between Class and Struct?

Answer Posted / talib hassan

1.Structure cannot provide the re usability but class provide the re usability of code.
2. All the members of structure are public but a class provide the several types of accessing methods.
3. structure cannot support polymorphism concept but class provide polymorphism.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5702


How can you determine the size of an allocated portion of memory?

1361


How to write a multi-statement macro?

1101


List the different types of c tokens?

1120


Why is c still so popular?

1101


how could explain about job profile

1988


Are the variables argc and argv are local to main?

1361


Why c is called a middle level language?

1162


What does it mean when a pointer is used in an if statement?

1156


Can 'this' pointer by used in the constructor?

1133


Explain how can I make sure that my program is the only one accessing a file?

1277


What does the message "automatic aggregate intialization is an ansi feature" mean?

1242


Explain About fork()?

1173


Tell me when is a void pointer used?

1240


Write a code to remove duplicates in a string.

1084