What is the difference between Class and Structure?
Answer Posted / ali abbas khan
structure is contain data member and class is contain member function
structure have by default public and class have by default privat
structure can't have inheritance and class can have inheritance
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Why do we use using namespace std in c++?
Write a note about the virtual member function?
Where Malloc(), Calloc(), and realloc() does get memory?
What are static variables?
Does dev c++ support c++ 11?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Comment on local and global scope of a variable.
Is dev c++ a good compiler?
Describe private, protected and public?
What is istream and ostream in c++?
What is flush programming?
How long does it take to get good at leetcode?
What does flush do?
Which bit wise operator is suitable for putting on a particular bit in a number?