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
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
How can you determine the size of an allocated portion of memory?
How to write a multi-statement macro?
List the different types of c tokens?
Why is c still so popular?
how could explain about job profile
Are the variables argc and argv are local to main?
Why c is called a middle level language?
What does it mean when a pointer is used in an if statement?
Can 'this' pointer by used in the constructor?
Explain how can I make sure that my program is the only one accessing a file?
What does the message "automatic aggregate intialization is an ansi feature" mean?
Explain About fork()?
Tell me when is a void pointer used?
Write a code to remove duplicates in a string.