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

What is multiple inheritance ?

17 Answers   Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,


What is differance between Abstract and Interface

3 Answers  


In c++ there is only virtual destructors, no constructors. Why?

4 Answers   IBM, Polaris,


Why is abstraction needed?

0 Answers  


Why a "operator=(...)" when there is a copy ctor?

2 Answers  






why destructor is not over loaded?

5 Answers  


What is destructor example?

0 Answers  


what are the ways in which a constructors can be called?

0 Answers  


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

0 Answers  


tell about copy constructor

3 Answers   Siemens,


What are the advantanges of modularity

2 Answers  


Categories