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


Please Help Members By Posting Answers For Below Questions

What is the full form of oops?

934


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?

1902


How to use CMutex, CSemaphore in VC++ MFC

4554


What is inheritance write a program to show use of inheritance?

894


Why is oop useful?

824


What are the types of abstraction?

791


How do you define social class?

827


What is the oops and benefits of oops programming?

755


What is encapsulation example?

789


What is polymorphism and why is it important?

793


What is destructor example?

786


Can bst contain duplicates?

962


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

2005


What is the important feature of inheritance?

877


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2389