Answer Posted / charu
1)Encapsulation – Encapsulation is capturing data and keeping it safely and securely from outside interfaces.
2)Inheritance- This is the process by which a class can be derived from a base class with all features of base class and some of its own. This increases code reusability.
3)Polymorphism- This is the ability to exist in various forms. For example an operator can be overloaded so as to add two integer numbers and two floats.
4)Abstraction- The ability to represent data at a very conceptual level without any details
| Is This Answer Correct ? | 40 Yes | 12 No |
Post New Answer View All Answers
What is destructor oops?
Can you explain polymorphism?
What do you mean by abstraction?
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.
Why is polymorphism needed?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the oops and benefits of oops programming?
What does sksksk mean in text slang?
What is class and object in oops?
Can private class be inherited?
Why is polymorphism important in oop?
what is the drawback of classical methods in oops?
Prepare me a program for the animation of train
How many human genes are polymorphic?
What is a class in oop?