Questions tagged as 'interface'

0
answers

Doubt - PHP Object Oriented / Pattern Strategy:

Hello, I have a question on how to use the standard strategy in php. How can I type a variable in php to be an interface as it is done in java Waltever variavel , whose interface is Whatever? I have a class that has a class that impleme...
asked by 23.08.2018 / 14:48
1
answer

doubts generic class asp.net mvc

Good evening, In my project I have an application layer where the class is structured as follows: namespace ProjetoTreino.Aplicacao { public class PessoaAplicacao { private readonly IRepositorio<Pessoa> repositorio; public...
asked by 29.01.2018 / 03:12
0
answers

Interface Lock in NetBeans

I am developing a program for client-server communication. I'm developing the graphical interface of the program based on JPanel / Forms . The client data is sent correctly to the server. My problem is when I go to fetch the data...
asked by 09.12.2017 / 13:01
0
answers

Doubts on Abstract Classes and Interface (java) [duplicate]

Before stating my doubt, it is valid to make it clear that in some way I understand the difference between the two. I know that an abstract class can have implemented methods, attributes, constructors, and needs at least one abstract meth...
asked by 08.10.2017 / 00:40
0
answers

What is an interface? [duplicate]

Background ( TL; DR ): I'm working on an ASP.NET legacy project, I was testing some of it's functionality when I got an error in the browser console: Failed to load resource: the server responded with a status of 500 (Internal Server...
asked by 27.06.2017 / 20:51
1
answer

Implement dictionary as interface C # [closed]

I'm trying to set a dictionary in my interface, but it's saying that the main class did not implement the dictionary. Interface.cs public interface IItem { event Action<string, string, string, string, string, string, string, string,...
asked by 02.04.2017 / 22:08
0
answers

serial port node.js

I need to write a code for node.js that receives a "post request" (in this case a word String ), and pass this word forward to serial port. Then you receive from this serial port another word and put this word as answer for a "post reque...
asked by 24.07.2016 / 14:06
2
answers

Interface with the same name as a class

namespace path; interface test{ public function method(); } class test{ } class foo implements test{ } When writing the above code a fatal error is returned: Cannot declare class path\test, because the name is already in use in ......
asked by 11.01.2016 / 17:57
1
answer

Interface vs Class - methods visibility

I've done a job for school and it's working perfectly. In the code I have some private methods. Do I need to create an Interface of this class to hide these private methods or can they be in the same class as the public methods? At this po...
asked by 14.05.2015 / 12:51
1
answer

How to solve this diamond inheritance problem [closed]

Can anyone solve this problem (diamond inheritance) with the use of Interfaces and post here in C #? I found it in this post: why C # does not allow multiple inheritance? but I could not solve it. Inheriting many concrete classes is a major...
asked by 02.07.2018 / 20:18