What is the difference between and interface and an
abstract class ?
Answer Posted / sathish kumar.t
ABSTRACT CLASS Interface
It consist of Static It consist of non- static member
member variables variables
It consist of non-abstract It consist of only abstract
and abstract methods methods
it consist of private and It consist of public classes
protected classes
It uses the keyword Extends uses the keyword Inplements
If subclass extends the If the subclass implements
abstact class, cannot extend interface, can implement any
any other class number of interfaces
| Is This Answer Correct ? | 19 Yes | 23 No |
Post New Answer View All Answers
Write a c++ program to display pass and fail for three student using static member function
What is abstraction in oop?
Why is oop better than procedural?
Are polymorphisms mutations?
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 overriding in oops?
What is abstraction example?
How oops is better than procedural?
What is polymorphism what are the different types of polymorphism?
Why is static class not inherited?
program for insertion ,deletion,sorting in double link list
What are objects in oop?
Why do we use polymorphism in oops?
Why we use classes in oop?
officer say me - i am offered to a smoking , then what can you say