ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> OOPS
 
 


 

 
 STL interview questions  STL Interview Questions (91)
 OOPS interview questions  OOPS Interview Questions (558)
 C++ General interview questions  C++ General Interview Questions (458)
Question
explain defference between structure and class with example
 Question Submitted By :: OOPS
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
In structure By default data members are public
In class By default data members are private
 
Is This Answer Correct ?    2 Yes 0 No
Maheshkumar Eaga
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ETH 7
Can we have a private virtual method ? Ness-Technologies 8
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required Wipro 15
Can we have a private constructor ? Ness-Technologies 12
what is the main difference between c and c++? Microsoft 386
which is platform independent device used in computers   2
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile CTS 1
What is command routing in MFC GE 1
When you define a integer it gets stored in which data structure?(Stack or a heap) emc2 2
Write on signed and unsigned integers and give three (3) examples each   1
When is it necessary to use member-wise initialization list in C++? Adobe 2
define a string class. overload the operator == to compare two strings Ericsson 2
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com