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 use of overloading?

0 Answers  


swapping program does not use third variable

5 Answers   TCS,


What is cohesion in oop?

0 Answers  


What is the difference between the C & C++?

9 Answers   HCL,


What is inheritance in oop?

0 Answers  






What is byval and byref? What are differences between them?

0 Answers   HCL, Wipro,


How can we use the preprocessor #if and #elseif.

2 Answers  


What is object-oriented programming? Webopedia definition

0 Answers  


WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.

7 Answers   ETH,


can you give real time example for polymarphism

5 Answers   TCS,


what is the 3 types of system development life cycle

0 Answers  


What do you mean by stack program? Get me an example stack program?

4 Answers  


Categories