Answer Posted / sree
encapsulation means combining the data and the functions
using that data.
EX: class
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by variable?
How to call a non virtual function in the derived class by using base class pointer
explain sub-type and sub class? atleast u have differ it into 4 points?
Can we have inheritance without polymorphism?
What is the real time example of inheritance?
What is oops concept with example?
What is meant by multiple inheritance?
Can we create object of interface?
Whats is abstraction in oops?
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 the difference between abstraction and polymorphism?
What is the benefit of oop?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Can destructor be overloaded?
How Do you Code Composition and Aggregation in C++ ?