Linked Questions

0 votes
1 answer
723 views

I'm having trouble understanding why I should use interfaces, and how I should integrate them into my current project. I use a lot of polymorphism already, and I usually see polymorphism and ...
SpiroMarshes's user avatar
1 vote
0 answers
524 views

can you please explain why really i need use interface instead of directly declaring and implementing method inside of Class. Above i have two example. Class with interface and without. Thanks in ...
Hayk Jomardyan's user avatar
1 vote
1 answer
308 views

I have created an interface Animal and make function makeSound. Now I implements Animal in Cat and Dog class and echo something from makeSound function. Now I am confused why I need to create ...
Nazmul Hoque's user avatar
2 votes
1 answer
109 views

It's a rather theoretical question, but what kind of interfaces does java have? For example, I know two of them: marker interfaces (e.g. Serializable, no methods defined, is similar to class-level ...
krisy's user avatar
  • 1,568
-1 votes
1 answer
104 views

I see people creating an instance of some class and assigning it to a reference variable of type interface that the class implements. interface A { void display(); } public class InterfaceObject ...
user3366706's user avatar
  • 1,609
87 votes
11 answers
90k views

I still have some confusion about this thing. What I have found till now is (Similar questions have already been asked here but I was having some other points.) Interface is collection of ONLY ...
gprathour's user avatar
  • 15.4k
23 votes
8 answers
15k views

I often hear/read about interfaced based programming but I am not exactly clear on what that really means. Is interfaced based programming an actual stand alone topic that actually has books written ...
Flack's user avatar
  • 5,939
10 votes
3 answers
10k views

I was reading Dart's documentation and I was a little bit confused, maybe because I'm coming from Ruby, as to how to use interfaces. Of course, interfaces are not unique to Dart and there are quite a ...
orion3's user avatar
  • 9,973
6 votes
12 answers
5k views

Instead of writing abstract methods in interfaces, why not directly implement those methods in class?
kedar kamthe's user avatar
  • 8,208
9 votes
5 answers
30k views

Here is an answer to "How do I instantiate a Queue object in java?", Queue is an interface. You can't instantiate an interface directly except via an anonymous inner class. Typically this ...
user3301555's user avatar
0 votes
2 answers
1k views

All the methods declared in interfaces are abstract and we have to re-write the method with signature and body in the class that implements the interface. So what's the point of using the interface?
subash poudel's user avatar
1 vote
1 answer
2k views

I'm trying to learn about clean architecture. I've a question.According to this article Making a network request is one of the most common tasks an Android app might perform. The News app needs to ...
Tunahan's user avatar
  • 464
3 votes
1 answer
1k views

In trying to build a scientific Python package, I'm aiming to separate key functionality into different .py files for clarity. Specifically, it seems logical to me to split complicated numerical ...
IanRoberts's user avatar
  • 2,986
0 votes
6 answers
309 views

Possible Duplicate: Interfaces: Why cant I seem to grasp them? What is the purpose of interfaces in C#? How would they enable extendable,modular design in c#,Java? As far as my experience with ...
Srinivas Reddy Thatiparthy's user avatar
1 vote
2 answers
915 views

This question is in continuation to my previous post located here. Since there is no way to post code sample again without editing your original post, I am starting a new post. And also, this contains ...
RKh's user avatar
  • 14.2k

15 30 50 per page