answersLogoWhite

0

interface works like an abstract class it has methods which are not defined its job is to give a general idea about the class(generic) the class can have its own functions but interface makes java program to include all the functions or methods present in the interface there are ibuilt interfaces like runnable example in threads it is runnable it makes compulsory to the class to include all the methods in interface if you dont want that then use abstract key word before class eg: interface a{void meth(int i);} class one implements a{ void meth(int i) System.out.print(i); //all other members of class// if dont use meth function it will give an error for big projects certain general functions are necessary which have to be there everywhere it gives general idea of what the program is doing

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Explain listing process with suitable example and Diagram?

1 Explain listing process with suitable example & Diagram


What is an example to explain the concept of scarcity?

Mixed economy


Explain with suitable example how switch statement is differ from if statement?

www.assignmentsclub.com


What do you mean by recursive function explain with suitable example?

Type your answer here...


Example in everyday life to explain this binary concept?

Flipping coins.


Need of project for mca students?

EXplain the order and unorder lists with suitable example


What is the present tense of explain?

Explain is present tense. I/We/You/They explain He/She/It explains The present participle is explaining.


Explain the concept of late binding and dynamic binding with the help of at least two examples?

the concept of dynamic linking and dynamic binding with example


Explain the following tearm in the context of object oriented programming Also explain how these concept are implement in c by given an example program for each?

Explain the following terms in the context of object oriented programming. Also explain how these concepts are implemented in C++ by giving an example program for each.


What is a example of a deficiency in the legacy environment?

Many costly interfaces


What is an example of a concept?

An example of a concept is called a prototype.


In this chapter a light bulb is used to demonstrate the binary concept used for computer storage and communication Give another example in everyday life to explain this binary concept Get creativ?

TV, Car, Clock, and door.