INTERFACE IN JAVA

Interface: Interface is a blueprint of a class. In other words, It is set of rules or contract. Interface Declaration: An interface is declared by using the interface keyword. Syntax: Interfaces have the following properties: An interface is implicitly abstract. do not need to use the abstract keyword while declaring an interface. Each method inContinue reading “INTERFACE IN JAVA”

Abstraction in java

Abstraction: The process of showing only essential things & hiding the background details / inner details. Ex: We can handle TV, Washing machine, AC, Vehicles & ATM card yet we don’t have the knowledge of their inner operations. Abstract Class: A class which contains the abstract keyword in its declaration is known as abstract class.Continue reading “Abstraction in java”

Design a site like this with WordPress.com
Get started