Describe what an Interface is and how it?s different from a
Class.
Answer Posted / priaynk
Interface is an idea about the functionalities provided.
class will define the rules for that idea
object is the real entity which takes it into reality.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are the 3 pillars of oop?
How do you use inheritance in unity?
What are the 3 principles of oop?
What is polymorphism and types?
hi all..i want to know oops concepts clearly can any1 explain??
What is variable example?
What is oops and its features?
What is overloading 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 does no cap mean?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Why is polymorphism used?
What is the diamond problem in inheritance?
What is the point of oop?
Why do we use polymorphism?