what is the use of classes in c++;

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use polymorphism in oops?

575


What are the three parts of a simple empty class?

1456


What is purpose of inheritance?

643


Get me an image implementation program.

1557


to find out the minimum of two integer number of two different classes using friend function

1639






Can you explain polymorphism?

578


explain sub-type and sub class? atleast u have differ it into 4 points?

1830


What is difference between pop and oop?

601


Which language is pure oop?

545


What are functions in oop?

582


What is encapsulation in ict?

603


What is encapsulation in oops?

534


What is object and class in oops?

586


what's the basic's in dot net

1734


What are the 3 pillars of oop?

611