Describe what an Interface is and how it?s different from a
Class.
Answer Posted / kalaivani
interface is define as the declaration part of the function.
interface is differ from the class by class can access the
interface but interface cannot access the class
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Can you explain polymorphism?
How is class defined?
What is variable example?
why reinterpret cast is considered dangerous?
write a C++ program for booking using constructor and destructor.
What is the full form of oops?
Why polymorphism is used in oops?
What is abstraction encapsulation?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What type of loop is a for loop?
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.
Can we create object of interface?
What is object in oop with example?
What is encapsulation with example?
How long to learn object oriented programming?