Answer Posted / abalonesoft
A class defines a data type, much like a struct would be in
C. In a computer science sense, a type consists of both a
set of states and a set of operations which transition
between those states. Thus int is a type because it has both
a set of states and it has operations like i + j or i++,
etc. In exactly the same way, a class provides a set of
(usually public) operations, and a set of (usually
non-public) data bits representing the abstract values that
instances of the type can have.
You can imagine that int is a class that has member
functions called operator++, etc. (int isn't really a class,
but the basic analogy is this: a class is a type, much like
int is a type.)
Note: a C programmer can think of a class as a C struct
whose members default to private. But if that's all you
think of a class, then you probably need to experience a
personal paradigm shift.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Who developed c language and when?
What are the 5 types of organizational structures?
What is console in c language?
Can you write the algorithm for Queue?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
what is the height of tree if leaf node is at level 3. please explain
Explain how can I convert a number to a string?
Difference between linking and loading?
Which is the best website to learn c programming?
Is it possible to have a function as a parameter in another function?
What are derived data types in c?
what do u mean by Direct access files? then can u explain about Direct Access Files?
How to throw some light on the b tree?
Explain how are portions of a program disabled in demo versions?
Differentiate between a for loop and a while loop? What are it uses?