what is the use of classes in c++;

Answers were Sorted based on User's Feedback



what is the use of classes in c++;..

Answer / abhishek karal

In object-oriented programming, a class is a construct that
is used as a blueprint (or template) to create objects of
that class. This blueprint describes the state and behavior
that the objects of the class all share. An object of a
given class is called an instance of the class. The class
that contains (and was used to create) that instance can be
considered as the type of that object, e.g. an object
instance of the "Fruit" class would be of the type "Fruit".

Is This Answer Correct ?    21 Yes 8 No

what is the use of classes in c++;..

Answer / anilkuma

In c++ classes are used for protect data,nothing but we can
provide more secure for data in c++ classes

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More OOPS Interview Questions

How to call a non virtual function in the derived class by using base class pointer

3 Answers   HCL,


Have you ever interfaced with a database?

2 Answers   IBM,


WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET

1 Answers  


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

0 Answers  


what is the difference b/w abstract and interface?

2 Answers   Merrill Lynch, Schneider, Scio Healthcare,






what is the usage of clas templates

5 Answers  


write a c++ code of diagonal matrix.

2 Answers  


Can enum be null?

0 Answers  


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

0 Answers  


Can we define a class within the interface?

0 Answers  


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


What is difference between pop and oop?

0 Answers  


Categories