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 |
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
What is differance between Abstract and Interface
In c++ there is only virtual destructors, no constructors. Why?
Why is abstraction needed?
Why a "operator=(...)" when there is a copy ctor?
why destructor is not over loaded?
What is destructor example?
what are the ways in which a constructors can be called?
What is difference between multiple inheritance and multilevel inheritance?
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.
tell about copy constructor
What are the advantanges of modularity