What is the Difference between Class and Struct?
Answer Posted / satvir kaur
STRUCTURE CLASS
1.structure by default is 1. class by default is private
public.
2.structure does not 2.class provide data hiding.
provide data hiding.
3.A structure would be the 3.class would be the collection
collection of related data. of data & code which handels
data.
CAN U TELL ME MORE DIFFERENCE BETWEEN LIKE THIS PLZ TELL ME
AS EARLY AS POSSIBLE I AM WAITING
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is adt in c programming?
What is void pointers in c?
Write a program to find factorial of a number using recursive function.
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
what do you mean by enumeration constant?
Can 'this' pointer by used in the constructor?
How do you write a program which produces its own source code as output?
What is static function in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Why malloc is faster than calloc?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is action and transformation in spark?
What is static volatile in c?
Should I learn data structures in c or python?
what do the 'c' and 'v' in argc and argv stand for?