What is the difference between Class and Structure?
Answer Posted / eshetu
1. IN STRUCTURE THE DATA MEMBER BY DEFAULT IS PUBLIC BUT IN
CLASS THE DATA MEMBER ARE PRIVATE.
2. THE STRUCTURE ONLY CONTAIN DATA MEMBER BUT CLASS CONTAIN
DATA MEMBER & MEMBER FUNCTION.
3.IN STRUCTURE THE STRUCTURE NAME CAN'T STAND ALONE.BUT THE
CLASS NAME CAN STAND ALONE.
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What are exceptions c++?
What are the advantages of c++ over c?
What is the C-style character string?
What are the differences between java and c++?
What are iterators in c++?
What are c++ data types?
What is istream c++?
Are strings mutable in c++?
What is the best c++ book for beginners?
What is java and c++?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
How much is c++ certification?
What is scope resolution operator in c++ with example?
Write about the use of the virtual destructor?
Do inline functions improve performance?