explain defference between structure and class with example



explain defference between structure and class with example..

Answer / maheshkumar eaga

In structure By default data members are public
In class By default data members are private

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More OOPS Interview Questions

Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

13 Answers   IBM,


What is data binding?

4 Answers   Ittiam Systems,


• What are the desirable attributes for memory managment?

0 Answers  


in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C

1 Answers   IonIdea,


Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


what is an qt4 interface?

1 Answers   IBM,


What is encapsulation oop?

0 Answers  


write knight tour problem which is present in datastructure

0 Answers  


What is virtual function?where and when is it used?

2 Answers   Sitel,


what is graphics

0 Answers  


What are the four main oops concepts?

1 Answers  


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

2 Answers  


Categories