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
Explain how are 16- and 32-bit numbers stored?
What is the advantage of c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What are # preprocessor operator in c?
How is a null pointer different from a dangling pointer?
What are the advantages of Macro over function?
What does *p++ do? What does it point to?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is main () in c language?
Can include files be nested?
What is use of bit field?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
In C programming, what command or code can be used to determine if a number of odd or even?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Explain the use of #pragma exit?