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's the full form of STL?
What is differance between Abstract and Interface
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
why to use template classes in c++?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
How many human genes are polymorphic?
ambiguity regulation of multiple inheritance with example.
define a string class. overload the operator == to compare two strings
2 Answers Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,
why reinterpret cast is considered dangerous?
What is a friend function & its advantage?