What is interfaces? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is interfaces?

4th Aug 2016, 4:23 PM
Kajal Jagtap
Kajal Jagtap - avatar
4 Answers
+ 1
Interfaces are a way to define exactly what methods should be used for a program. It creates a template for other programmers to follow. If functions are not made in a program that are listed in the interface, the compiler will complain. It forces compliance to an expected standard. It's useful to design it early on in development. The interface functions should convey to programmers the meaning of what the function will do with appropriate naming. The programmers can then make code in any way to suit the interface functions intended design.
7th Aug 2016, 2:10 AM
Mi You
0
interfaces in java are part of java APIs I.e it is a way of a programming language to interact with user
5th Aug 2016, 10:56 AM
Aditya
Aditya - avatar
0
it is a collection of abstract methods abstract methods don't have body where they are declared body of abstract method is provided by the class which implement them
5th Aug 2016, 7:52 PM
sachin tomar
sachin tomar - avatar
0
The way of a system to interact with user is called interaction. There are 2 types of interface they are cui(command user interface) and gui(graphics user interface).
5th Aug 2017, 6:35 PM
Aditya
Aditya - avatar