what isthe difference between c structure and c++ class
Answers were Sorted based on User's Feedback
Answer / harshad khedekar
c does not allow struct data type to be treated like built-in datatype also it does not supports data hiding concept.in c++ instead of struct we have class which overcomes all the above limitations.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / jeremiah
The default scope of a C struct is public, whearas the
default scope of a C++ class is private.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / amarnath
Construtor is not in c strut and present in c++ class
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / a.sivasakthi
c structure are only define the data and data types
C++ class are define the data and solve the function the
both process are solved to the c++ class
| Is This Answer Correct ? | 0 Yes | 4 No |
what is difference between String s=new String("vali"); String s="vali"
Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.
difference between static and non-static variables?
how to find no of instances of an object in .NET?
What is the difference between const int *ptr and int const *ptr???
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What type of loop is a for loop?
Why many objects can working together? How objects working togetherM I want to see example code.
what are the disadvantages of C++?
25 Answers ATS, Infosys, UNI, Wipro,
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is basic concept of oop?
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,