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 overriding vs overloading?

0 Answers  


Differences between inline functions and non-inline functions?

4 Answers   Ness Technologies,


What are objects in oop?

0 Answers  


What is interface in oop?

0 Answers  


What is multidimensional array?

1 Answers  






design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }

1 Answers   HSBC,


What is interface? When and where is it used?

0 Answers  


what is ltti

1 Answers   Unisys,


What is the difference between an object and a class?

3 Answers  


Should you protect the global data in threads? Why or why not?

2 Answers   IBM,


When is a memory allocated to a class?

11 Answers  


What does and I oop and sksksk mean?

0 Answers  


Categories