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 does it mean when the linker says that _end is undefined?
What is abstract data structure in c?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Why is c known as a mother language?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is function prototype in c with example?
What is a node in c?
Why does notstrcat(string, "!");Work?
How are portions of a program disabled in demo versions?
Define VARIABLE?
How do I convert a string to all upper or lower case?
How do you write a program which produces its own source code as output?
What is the difference between if else and switchstatement
How are variables declared in c?
what is the basis for selection of arrays or pointers as data structure in a program