what is Class in oops with example?

Answers were Sorted based on User's Feedback



what is Class in oops with example?..

Answer / sudhavasugj@gmail.com

Object is the variable of class in oops. Class is created
for do some behavior in program. The behavior is accessed by
creating the object for the particular class in main program.

Ex: computer c++;

computer - class

c++ - object

Is This Answer Correct ?    7 Yes 0 No

what is Class in oops with example?..

Answer / guest

class is an template for an object

Is This Answer Correct ?    7 Yes 2 No

what is Class in oops with example?..

Answer / venkatesh

Class is a user defined datatype, and it is a logical representation of data(means which does not occupy any space)

Is This Answer Correct ?    4 Yes 0 No

what is Class in oops with example?..

Answer / elakiya.p

a class is a collection of similar object type.
for eg:
fruit mango;
->fruit is a user defined data type.
->mango is a object.
->fruit is also we called class.
->it behave like built-in types of programming language.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is encapsulation in oop?

0 Answers  


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

3 Answers  


What is polymorphism and why is it important?

0 Answers  


what is overloading and overriding?

7 Answers  


write knight tour problem which is present in datastructure

0 Answers  






Is react oop?

0 Answers  


What is polymorphism in oops with example?

0 Answers  


what is costructor?

1 Answers  


how to tackle technical questions

1 Answers  


Program to print 0 to 9 in cross order

3 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


What is R T T I ?

6 Answers   Ness Technologies,


Categories