Tag: interface

1555 What is the difference between an interface and abstract class? 2009-12-16T08:15:15.523

1247 Interface vs Abstract Class (general OO) 2009-04-17T16:42:38.523

745 How do you declare an interface in C++? 2008-11-25T16:48:47.303

731 What does it mean to "program to an interface"? 2008-12-21T00:48:59.113

722 Interface vs Base class 2008-09-11T15:20:30.803

591 Implements vs extends: When to use? What's the difference? 2012-05-31T18:25:47.120

577 C# Interfaces. Implicit implementation versus Explicit implementation 2008-09-27T10:56:16.430

477 Type List vs type ArrayList in Java 2010-02-17T07:40:13.490

468 Interface defining a constructor signature? 2009-03-06T18:13:27.020

464 Difference between abstract class and interface in Python 2008-12-16T17:32:27.833

463 How to determine if a type implements an interface with C# reflection 2011-02-10T21:49:47.320

431 Why can't I define a static method in a Java interface? 2009-02-04T19:21:29.737

415 The difference between the Runnable and Callable interfaces in Java 2008-09-26T19:00:37.883

406 How should I have explained the difference between an Interface and an Abstract class? 2013-09-13T03:50:40.760

383 Interface with default methods vs Abstract class in Java 8 2013-11-15T10:06:01.923

377 Should we @Override an interface's method implementation? 2008-10-17T15:18:01.980

367 When to use an interface instead of an abstract class and vice versa? 2009-01-26T08:47:38.607

325 Why are C# 4 optional parameters defined on interface not enforced on implementing class? 2011-02-07T14:59:10.140

297 Test if object implements interface 2009-01-04T01:25:10.487

294 Interface naming in Java 2009-02-12T15:51:33.090

281 Traits vs. Interfaces 2012-02-09T03:40:21.727

280 Interface or an Abstract Class: which one to use? 2009-11-29T06:21:01.630

264 Should methods in a Java interface be declared with or without a public access modifier? 2008-10-02T10:13:22.140

241 Abstract class in Java 2009-08-24T06:26:40.643

229 What's the difference between interface and @interface in java? 2009-05-27T23:03:31.773

225 Why are interface variables static and final by default? 2010-03-12T05:47:53.077

222 Why would a static nested interface be used in Java? 2008-09-16T12:15:45.307

221 C# interfaces - What's the point? 2011-07-23T18:56:53.567

216 Java Pass Method as Parameter 2010-02-02T19:20:03.157

207 What is the point of interfaces in PHP? 2008-08-21T16:35:20.657

194 Multiple Inheritance in C# 2008-10-07T13:05:23.077

188 Java abstract interface 2011-08-26T09:23:38.517

186 How will I know when to create an interface? 2009-01-14T19:03:23.833

182 Implementing two interfaces in a class with same method. Which interface method is overridden? 2010-05-10T10:21:33.580

178 How do you find all subclasses of a given class in Java? 2009-01-29T15:53:02.780

177 Final arguments in interface methods - what's the point? 2011-03-21T15:53:47.017

172 Explicitly calling a default method in Java 2013-11-14T11:27:52.287

170 Custom fonts and XML layouts (Android) 2010-03-04T01:13:15.510

156 Is there more to an interface than having the correct methods 2009-02-02T21:07:36.497

146 Why can't I declare static methods in an interface? 2008-08-22T05:16:43.837

140 How can I use interface as a C# generic type constraint? 2009-07-08T07:18:02.060

140 How to make a Java class that implements one interface with two generic types? 2009-08-19T05:43:46.130

136 Why would one declare a Java interface method as abstract? 2009-03-13T05:07:15.263

134 Jump into interface implementation in Eclipse IDE 2010-07-15T12:35:38.327

133 Why is there no multiple inheritance in Java, but implementing multiple interfaces is allowed? 2010-03-25T12:40:41.557

131 Interface type check with Typescript 2013-01-20T14:37:38.110

128 Why does Eclipse complain about @Override on interface methods? 2009-06-12T17:33:25.960

128 Do interfaces inherit from Object class in java 2011-05-19T08:58:05.977

128 Polymorphism: Why use "List list = new ArrayList" instead of "ArrayList list = new ArrayList"? 2012-03-24T15:18:01.887

127 Constructor in an Interface? 2010-05-10T15:41:12.470

120 IntelliJ IDEA jump from interface to implementing class in Java 2011-02-19T15:54:27.500

119 Checking if an instance's class implements an interface? 2008-11-08T04:24:28.397

117 In C#, can a class inherit from another class and an interface? 2010-01-13T19:04:26.430

117 C#: Abstract classes need to implement interfaces? 2010-04-24T16:12:51.073

116 Why implement interface explicitly? 2010-11-05T03:07:31.180

114 What is use of Functional Interface in Java 8? 2016-04-27T06:21:23.243

113 Find Java classes implementing an interface 2009-01-12T16:05:54.473

110 How does typescript interfaces with construct signatures work? 2012-11-15T22:03:36.570

107 Why an abstract class implementing an interface can miss the declaration/implementation of one of the interface's methods? 2008-10-13T15:02:04.387

105 Comment the interface, implementation or both? 2009-04-17T09:19:29.743

105 Java8: Why is it forbidden to define a default method for a method from java.lang.Object 2014-06-03T13:50:37.323

103 How to check if an object implements an interface? 2012-04-15T20:40:53.280

102 Interfaces vs. abstract classes 2009-04-14T13:18:57.307

102 What does "program to interfaces, not implementations" mean? 2010-04-23T10:27:04.603

100 Why are C# interface methods not declared abstract or virtual? 2010-09-01T19:21:36.467

99 Pros and Cons of Interface constants 2011-03-18T10:27:25.003

99 How do you implement a private setter when using an interface? 2013-08-15T09:35:18.127

98 Can extension methods be applied to interfaces? 2010-05-05T02:56:16.777

97 Why java classes do not inherit annotations from implemented interfaces? 2011-01-20T10:12:23.667

97 Optional Methods in Java Interface 2012-05-13T14:47:36.030

97 How do arrays in C# partially implement IList<T>? 2012-06-22T20:01:11.217

95 What is the use of interface constants? 2010-04-17T19:00:04.483

95 Why an interface can not implement another interface? 2010-10-13T06:59:05.817

92 Protected in Interfaces 2011-03-21T11:25:34.320

92 When is an interface with a default method initialized? 2014-04-15T23:02:42.150

91 Should Javadoc comments be added to the implementation? 2010-06-17T11:54:58.147

90 Why are all fields in an interface implicitly static and final? 2009-10-03T11:27:38.927

90 X does not implement Y (... method has a pointer receiver) 2016-11-26T21:24:32.380

88 The 'instanceof' operator behaves differently for interfaces and classes 2015-07-14T05:39:44.453

87 What is java interface equivalent in Ruby? 2010-12-14T08:40:09.530

87 Java's Interface and Haskell's type class: differences and similarities? 2011-08-04T20:32:45.130

87 What is the "default" implementation of method defined in an Interface? 2013-08-17T07:21:06.007

87 Is there a way to create interfaces in ES6 / Node 4? 2015-09-17T09:27:48.180

85 Why no static methods in Interfaces, but static fields and inner classes OK? [pre-Java8] 2008-09-24T19:19:27.520

85 What is the definition of "interface" in object oriented programming 2010-05-19T15:34:18.263

85 Is the compiler treatment of implicit interface variables documented? 2011-10-13T18:59:34.353

84 Java - Method name collision in interface implementation 2010-04-08T06:35:31.027

83 Is there any ready-made calendar control for iPhone apps? 2009-06-15T19:02:23.397

82 What's the difference between IComparable & IEquatable interfaces? 2010-03-09T15:21:03.667

80 Is returning IList<T> worse than returning T[] or List<T>? 2015-12-17T12:15:08.567

79 inner class within Interface 2010-03-08T11:12:36.440

79 Understanding Covariant and Contravariant interfaces in C# 2010-04-27T09:13:24.620

79 Abstract Class vs Interface in C++ 2012-10-12T08:07:33.207

79 When do I have to use interfaces instead of abstract classes? 2013-05-27T22:30:19.523

77 What is the purpose of a marker interface? 2009-06-21T02:38:23.900

77 Difference between @interface definition in .h and .m file 2010-10-19T09:59:36.990

76 Why do we use Interface? Is it only for Standardization? 2010-01-08T07:17:35.727

76 How to find which classes implement a particular interface in Eclipse? 2011-09-12T09:00:48.277

75 Is it safe for structs to implement interfaces? 2008-09-15T14:59:29.743