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

what are the ways in which a constructors can be called?

0 Answers  


Program to read a comment string

1 Answers   IBM,


to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


Difference between vector and array

2 Answers  


What polymorphism means?

0 Answers  






What is overriding in oops?

0 Answers  


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


What is constructor in oop?

0 Answers  


What is oops and why we use oops?

0 Answers  


What are the fields of vtable

1 Answers   Mphasis,


You have one base class virtual function how will call that function from derived class?

4 Answers  


What is the diamond problem in inheritance?

0 Answers  


Categories