Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is a class?

Answers were Sorted based on User's Feedback



What is a class?..

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

What is a class?..

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

What is a class?..

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

Post New Answer

More C Interview Questions

Explain heap and queue.

0 Answers   Aricent,


What are void pointers in c?

0 Answers  


why array index always starts from zero??

4 Answers   TCS,


pierrot's divisor program using c or c++ code

0 Answers  


what is diference between return 0 and return NULL??

3 Answers  


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

0 Answers  


difference between function & structure

9 Answers   Verizon,


How can I read a directory in a c program?

1 Answers   CSC,


how do you redirect stdout value from a program to a file?

1 Answers  


Do you know the difference between malloc() and calloc() function?

0 Answers  


Explain what is the difference between a string and an array?

0 Answers  


What are multidimensional arrays?

0 Answers  


Categories