what is the use of classes in c++;
Answers were Sorted based on User's Feedback
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 |
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 |
what are the ways in which a constructors can be called?
Program to read a comment string
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
Difference between vector and array
What polymorphism means?
What is overriding in oops?
//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(); }
What is constructor in oop?
What is oops and why we use oops?
What are the fields of vtable
You have one base class virtual function how will call that function from derived class?
What is the diamond problem in inheritance?