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
Why is c so important?
What are reserved words with a programming language?
What are the uses of a pointer?
What is void main ()?
What is the main difference between calloc () and malloc ()?
What are identifiers c?
What is queue in c?
Between macros and functions,which is better to use and why?
How can you tell whether a program was compiled using c versus c++?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
Why is sprintf unsafe?
What is difference between class and structure?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Explain what is the benefit of using an enum rather than a #define constant?
How to establish connection with oracle database software from c language?