Computer Science, asked by Gurpindersingh2298, 1 year ago

What provide the interface between object's data and program?

Answers

Answered by Anonymous
3
Interfaces in Object OrientedProgramming Languages. An interfaceis a programming structure/syntax that allows the computer to enforce certain properties on an object (class).For example, say we have a car class and a scooter class and a truck class. Each of these three classes should have a start_engine() action.
Answered by adventureisland
0

An interface is a programming framework or syntax that allows a computer to impose specific features on an item.

The interface between object's data and program :

  • Object-Oriented Programming Language Interface. An interface is a programming framework or syntax that allows a computer to impose specific features on an item.
  • Consider the following scenario: we have a vehicle class, a scooter class, and a truck class. A start engine() action should be present in each of these three types.
  • Except for the default and static methods introduced in Java8, it often comprises abstract methods.
Similar questions