<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interface on Samarthya</title><link>https://samarthya.me/tags/interface/</link><description>Recent content in Interface on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Tue, 31 Jan 2023 12:00:00 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/interface/index.xml" rel="self" type="application/rss+xml"/><item><title>Python: Interface</title><link>https://samarthya.me/posts/python-interface/</link><pubDate>Tue, 31 Jan 2023 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/python-interface/</guid><description>&lt;p&gt;n Python, unlike some other programming languages, there is no explicit syntax for defining interfaces. However, you can create a similar concept by defining an abstract base class (ABC) that contains abstract methods. An abstract method is a method that is declared in a base class, but has no implementation. Subclasses of the abstract base class must implement these abstract methods.&lt;/p&gt;</description></item><item><title>Consumer &lt;Intf&gt;</title><link>https://samarthya.me/posts/consumer/</link><pubDate>Fri, 04 Dec 2020 14:38:51 +0000</pubDate><guid>https://samarthya.me/posts/consumer/</guid><description>&lt;p&gt;The utility package &lt;code&gt;java.util.function&lt;/code&gt; has this functional &lt;a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html" target="_blank" rel="noreferrer"&gt;interface Consumer&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Each functional interface (Annotated with @&lt;a href="https://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html" target="_blank" rel="noreferrer"&gt;FunctionalInterface&lt;/a&gt;) conceptually has a single method (abstract) called the functional method to which the lambda expression&amp;rsquo;s parameter and return types are matched against. Functional interfaces often represent abstract concepts like functions, actions, or predicates.&lt;/p&gt;</description></item><item><title>Nil Interface</title><link>https://samarthya.me/posts/nuil-intf/</link><pubDate>Sun, 26 Jan 2020 12:00:00 +0000</pubDate><guid>https://samarthya.me/posts/nuil-intf/</guid><description>&lt;p&gt;An interface in Golang is a set of methods and a type.&lt;/p&gt;&#10;&lt;p&gt;What is the purpose of Nil interface in GO-lang&lt;/p&gt;&#10;&lt;blockquote&gt;&lt;p&gt;A nil interface value holds neither value nor concrete type.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item></channel></rss>