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

When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


write a program for function overloading?

14 Answers   HCL, InfoCity, TATA,


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

0 Answers   NIIT, SRA,


What exactly is polymorphism?

0 Answers  


hi all..i want to know oops concepts clearly can any1 explain??

0 Answers   Eureka Forbes,






Advantage and disadvantage of routing in telecom sector

0 Answers  


What is a macro? And how is a macro same as a template?

4 Answers  


There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?

3 Answers   Microsoft,


why c++ is called OOPS? waht is inherutance? what is compiler?

5 Answers  


What is super in oop?

0 Answers  


What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


what is the size of an empty class

12 Answers   Wipro,


Categories