ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
Definition of class?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Definition of class?
Answer
# 1
A Claas is a group of objects that share some common 
properties and relationships.
 
Is This Answer Correct ?    1 Yes 0 No
Chithra
 
  Re: Definition of class?
Answer
# 2
class is the bind of functions and data together
 
Is This Answer Correct ?    1 Yes 0 No
Priya
 
 
 
  Re: Definition of class?
Answer
# 3
class is defined as the binding of functions and datas 
together
 
Is This Answer Correct ?    1 Yes 0 No
Priya
 
  Re: Definition of class?
Answer
# 4
class is the way to bind the functions and data together
 
Is This Answer Correct ?    1 Yes 0 No
Priya
 
  Re: Definition of class?
Answer
# 5
CLASS IS A USER DEFINE DATA TYPE.IT IS THE WAY OF BINDING 
DATA AND ITS ASSOCIATIVE FUNCTIONS.IT ALLOWS TO HIDING THE 
FUNCTION IF NECESSARY FOR EXTERNAL USE.WHEN A CLASS IS 
CREATED A OBJECT WILL CREATED.
 
Is This Answer Correct ?    0 Yes 0 No
Sanjaya Mohapatra
 
  Re: Definition of class?
Answer
# 6
class is a collection of data members and member functions
 
Is This Answer Correct ?    0 Yes 0 No
Manju
 
  Re: Definition of class?
Answer
# 7
class is defined as the collection of attributes and 
behavior
 
Is This Answer Correct ?    0 Yes 0 No
Aarthi
 
  Re: Definition of class?
Answer
# 8
A Class is a blueprint of object.

or 

class are units of code and data, which can be used as 
block boxs(called object).

Object:- Instance of class is called object.
 
Is This Answer Correct ?    1 Yes 0 No
Vadivel
 
  Re: Definition of class?
Answer
# 9
collection of data membetrs and function members
 
Is This Answer Correct ?    0 Yes 0 No
Prabakaran
 
  Re: Definition of class?
Answer
# 10
binding datas and functions together
 
Is This Answer Correct ?    0 Yes 1 No
Prabakaran
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55" HCL5
What is the Diffrence between a "assignment operator" and a "copy constructor"? Wipro2
Have you used MSVC? What do you think of it? Google2
Do we have private destructors? Symphony9
What is the Difference between "vector" and "array"? TCS6
What are the differences between a struct and a class in C++? Wipro4
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1 Quark1
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.  14
Explain about profiling?  1
Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; } Impetus2
tell me about yourself ?i want answer for frehers with various exasmples? HCL2
Can we use resume in error handling i.e. in the catch block Infosys3
How do I open binary files?  1
How to write a program such that it will delete itself after exectution?  1
Shall we use 'free' to free memory assigned by new, What are the further consequences?? Symphony4
What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl; Lehman-Brothers4
What and all can a compiler provides by default? HP3
Find the second maximum in an array? HCL2
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects. Quark2
What is the output of printf("%d")? HCL25
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com