What is a class?
Answers were Sorted based on User's Feedback
Answer / deepak saini
class is the collection of data and functions(methods)
which are used to collect that data.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / pushpanjali panda
class is a user defined entity which has some real world
existence,and it is a way to bind the data and its
associated functions of different datatypes
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
What is %s and %d in c?
What is the difference between a string and an array?
what is Structural oriented language? give some example of this language.....?
Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + …….. up to fifteen terms.
main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }
c language interview questions & answer
write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
Write a Program to find whether the given number or string is palindrome.
N O S I E R + A S T R A L ---------------- 7 2 5 6 1 3
Explain how do you print only part of a string?
What is a buffer in c?
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;