What is a class?




Answers were Sorted based on User's Feedback



What is a class?..

Answer / kumar vishal

In general a class is a group of objects. for example
mango,apple, banana, grapes etc. is a group of fruits.

But in oops concept, a class is a collection of member data
and member function.

Is This Answer Correct ?    22 Yes 1 No

What is a class?..

Answer / madasamy.k

Collection of data members(Varibles) and methods(functions)
is called class

Is This Answer Correct ?    10 Yes 1 No

What is a class?..

Answer / khadeer.k

a class is a collection of objects which contains variables
and functions...

Is This Answer Correct ?    9 Yes 1 No




What is a class?..

Answer / nayan patel

A class is USER DEFINE DATA TYPE.

Is This Answer Correct ?    7 Yes 0 No

What is a class?..

Answer / anandan

the wrapping up of data and functions into a single unit is
defined as the class

Is This Answer Correct ?    9 Yes 5 No

What is a class?..

Answer / ganesh

Class is an user defined datatype where variable and
related code where incorporated

Is This Answer Correct ?    3 Yes 1 No

What is a class?..

Answer / preethi

In object-oriented programming , a class is a template
definition of the method s and variable s in a particular
kind of object . Thus, an object is a specific instance of
a classClass is the Collection of Methods and Datafield, in
other
word we can say class is user defined Data Types
; it contains real values instead of variables

Is This Answer Correct ?    3 Yes 1 No

What is a class?..

Answer / kiran kumar.b

a class is a logical existence of a data containing data
variables and member functions having relations between
them.

Is This Answer Correct ?    3 Yes 2 No

What is a class?..

Answer / k.premalatha

class is a generalisation or mould or template of an object.

Is This Answer Correct ?    2 Yes 1 No

What is a class?..

Answer / laxman

class is a collection of object.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer



More OOPS Interview Questions

How to overload postfix operator in c++

1 Answers   Mphasis,


i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me.

1 Answers   Syntel,


Whatis the difference between oop and object based language

3 Answers  


What is OOPS and How it is different from Procedural Programming ?

23 Answers   Infosys, HP, Thyrocare,


#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

0 Answers  






why we call c++ is object oriented lanaguage

7 Answers   HCL,


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

0 Answers   SRA,


Name an advantage of array over linked list?

24 Answers   IBM, GML, Software Solutions,


write a program to find 2 power of a 5digit number with out using big int and exponent ?

0 Answers  


What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass

6 Answers   Wipro,


can we create and enter the data & hide files using programmes ?

2 Answers   Wipro,


What is a unary operator?

5 Answers  






Categories