Answer Posted / anu mehra
abstract classes contain
1)abstract as well as non abstract method
2) to inherit we use extends keyword
Interface
1) all methods are abstract ,public and static
2) all variables are public , static and final
3) to inherit we use implements keyword
4) interface can extend another interface
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the types of abstraction?
What is the point of polymorphism?
What is a class and object?
What are the data types in oop?
What is multilevel inheritance explain with example?
How Do you Code Composition and Aggregation in C++ ?
What is destructor in oop?
What causes polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
What are the components of marker interface?
Which language is not a true object oriented programming language?
What is overloading and its types?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is encapsulation example?