Questions tagged as 'interface'

1
answer

Check if object is part of class that implements certain interface

I need to create a condition to know if a given object is part of a class that implements a certain interface. How can I do this?     
asked by 12.12.2015 / 00:04
1
answer

Interface with inheritance in Delphi

I need to make a multiple inheritance in Delphi. Reading some articles, the most appropriate way is to do an interface. How do I do this, knowing that we have the classes below as an example: type TPessoa = class //atributos e métodos end;...
asked by 23.05.2015 / 08:13
1
answer

Static Interface Method

I have a class to encrypt data. But it will be used as a DLL, and for this I need to create an interface to show the methods (I tested without the interface and it did not work). However, it contains 2 static methods, and I'm getting an error fo...
asked by 19.01.2015 / 16:16
2
answers

PHP interface Graphics [closed]

I would like to know how to build interfaces in a system developed in PHP in a simple and effective way. I would like to know if there is any kind of Framework, if there is one which is best for building complex interfaces.     
asked by 30.04.2015 / 14:38
1
answer

Java - implement serializable [duplicate]

What benefits does the system have in implementing this interface in some java class? What changes in having a class that implements in comparison to one that does not have the implementation, being based that they have the same attributes? An...
asked by 09.06.2016 / 16:16
1
answer

Error validating login

I have the following code: package br.edu.utfpr.exer07; /* 7) Implementar uma interface que contenha os métodos à ser usados: a. double soma(double valor1, double valor2, double valor3); b. String calculaTabuada(double tabuada...
asked by 25.05.2015 / 01:57
1
answer

Specification and Implementation Java Socket

I created a class MySocket that extends java.net.Socket , however I saw that the java.net.Socket class implements the java.io.Closeable interface, and my question is: In my MySocket class I have to implement the...
asked by 02.09.2016 / 20:34
1
answer

Kotlin - How to reproduce the effect of "lateinit" on a "var" of an interface?

I have an interface called UserManager which has a var of type User interface UserManager { var user:User /* ... */ } and a class named UserManagerImpl that implements UserManager class UserManagerI...
asked by 21.04.2016 / 00:32
2
answers

Dependency Injection - Two objects that implement the same interface

I have two objects from the AmazonS3UploadService and DatabaseUploadService classes, and both implement the UploadService interface. The Uploading class has both objects injected by the Spring container. The problem is that the container can...
asked by 13.08.2015 / 15:20
1
answer

Error import import br.gov.frameworkdemoiselle.security.User

Error importing interface User : import br.gov.frameworkdemoiselle.security.User; demoiselle version used: 2.5.0-RC1 According to GrepCode, in version 2.5.0-BETA2, this interface existed ( link ), but from 2.5.0-BETA3 onwards it di...
asked by 24.04.2015 / 16:30