tag

home / developersection / tag

Abstraction and Interfaces in Java
java 19-Mar-2025
Abstraction and Interfaces in Java

Use an abstract class when you need shared fields or partially implemented methods, and an interface when you need a strict contract without implementation.

Interface in oops
c# 14-Nov-2018
Interface in oops

The Interfaces in C# are provided as a replacement of multiple inheritances.

Inheritance in PHP
php 18-Jun-2016
Inheritance in PHP

Inheritance is the one of the most important concept in object oriented programming. Inheritance is used to share properties and method between the related classes.

Nested Classes in Java: More with Inner Classes
java 19-May-2016
Nested Classes in Java: More with Inner Classes

If an inner class is declared with a public access modifier, it can be instantiated from outside the scope of its enclosing class.

Nested Classes in Java: Classifications of Nested Classes
java 19-May-2016
Nested Classes in Java: Classifications of Nested Classes

To create a static nested class, we use the static keyword in front of the class declaration, the same way we declare a static field or a method within the enclosing class.

Interfaces in Java: Implementing Multiple Interfaces
java 19-May-2016
Interfaces in Java: Implementing Multiple Interfaces

In the previous post, we created a standard interface to get the fuel efficiency of a car. A car has many such standard functions that could be defined in terms of interfaces.

Interfaces in Java: Extending Interfaces
java 18-May-2016
Interfaces in Java: Extending Interfaces

It is possible to extend an existing interface. The purpose behind doing so is to add more declarations, both constants and methods, to an existing interface.

Interfaces in Java: Real life Example
java 18-May-2016
Interfaces in Java: Real life Example

Suppose we are asked to develop communication software such as an FTP (File Transfer Protocol) or Telnet program that uses a modem.