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 for loop and its syntax?

0 Answers  


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 Answers  


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

0 Answers  


Program to check whether a word starts with a capital letter or not.

1 Answers   Infosys,






What is Method overloading?

5 Answers  


What is purpose of inheritance?

0 Answers  


Why it is called runtime polymorphism?

0 Answers  


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


why to use operator overloading

3 Answers  


4. What do you mean by a prototype? Define analysis prototype

1 Answers  


Categories