What is the difference between class and structure?
Answer Posted / satish
1.class access data members and member functions but
structure access only data members
2.class supports constructor but structure does not supports.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is new keyword in oops?
What is difference between inheritance and polymorphism?
How to hide the base class functionality in Inheritance?
What is difference between pop and oop?
Give two or more real cenario of virtual function and vertual object
Why do we use oops?
What is encapsulation in oop?
Why do we need oop?
Can a destructor be called directly?
How can you overcome the diamond problem in inheritance?
What are constructors in oop?
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.
What is abstraction in oops?
What are the benefits of oop?
Explain the concepts involved in Object Oriented programming.