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
What does *p++ do? What does it point to?
What does malloc () calloc () realloc () free () do?
What is storage class?
What is calloc in c?
What is pass by reference in c?
Can you define which header file to include at compile time?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
how to construct a simulator keeping the logical boolean gates in c
Is fortran still used in 2018?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the heap in c?
what is a constant pointer in C
What are the advantages of union?
Which is better oop or procedural?