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

Example for 4 pillar of oops like, Inheritance,Poly,Abstraction,Encabsulation ?

3 Answers  


Can we create object of abstract class?

1 Answers  


How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

4 Answers   NIIT, TCS,


Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?

5 Answers  


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

1 Answers  


What are the different forms of polymorphism??

8 Answers   Mantaq, NUC, PCS,


Write a program to demonstrate the use of 'Composition' in C++

2 Answers  


write a program that takes input in digits and display the result in words from 1 to 1000

1 Answers   Wipro,


Please send ford technologies placement paper 2 my mail id

0 Answers  


features of OOPS

22 Answers   Ness Technologies, Satyam,


can you explain how to use JavaBean in Project

3 Answers   Infosys, Satyam,


what is oppes

2 Answers  


Categories