Questions tagged [implementation]

Deals with various issues of implementation.

Deals with various issues of implementation of functions, features, languages, etc.

2196 questions
0
votes
2 answers

Is the use of header-less method implementations good practise or frowned upon?

If you write method implementations in Objective-C, it is pretty standard to sum up the methods of a class in the corresponding @interface blocks. Publically accessible methods go in the header file's interface, not-so-public methods can go in an…
epologee
  • 11,229
  • 11
  • 68
  • 104
0
votes
1 answer

leandroBorgesFerreira/LoadingButtonAndroid Implementation Error

I'm try to use this button style this link But I had Implementation error, my build.gradle like that: That's my dependencies : dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation…
FatalError
  • 153
  • 12
0
votes
2 answers

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api' WARNING

So I have an issue with my compile code. I changed everything the right way to implementation but I still keep on getting this error. I have tried to change the Version and the compile to API but I don't understand what still goes wrong. Warning =…
0
votes
1 answer

android build error: can't find symbol class IntDef

Using Android Studio to build the android version of a react native app. I just received 'error: cannot find symbol class IntDef' It's used in the following code: @IntDef(flag = true, value = { Information.BATTERY, Information.RSSI,…
VK1
  • 1,676
  • 4
  • 28
  • 51
0
votes
0 answers

Hash Implementation - Hash Function MAD Form

I am implementing a hash table in java and I have to define the hash function. I am following the MAD Form. I read in internet: The MAD method: h2(y) = [(ay + b) mod p] mod N, where N is the size of the hash table, p is a prime number larger than…
MrScf
  • 2,407
  • 5
  • 27
  • 40
0
votes
0 answers

Error when using the template class copy constructor

I can not write copy constructor. How to fix the error? Tried to fix it like that: template vector::vector(const vector &other) { this->allocator_ = other.allocator_; this->size_ = other.size_; …
JDbP
  • 53
  • 4
0
votes
3 answers

Test method in abstract class once and not for each implementation

At the moment I have an abstract class which implements an interface. All implementations extend the abstract class to make there own implementation of the interface methods. The abstract class holds methods which are the same for each…
0
votes
1 answer

In General: Writing custom implementations for Spring and Spring Security

Im using Spring Framework and Spring Security and I noticed that for Spring Security it is possible to write implementations for almost every class offered by Spring Security (lets say for Filters, Features (RememberMe) and so on). I like the…
nano7
  • 2,455
  • 7
  • 35
  • 52
0
votes
3 answers

Java Interface Implementation - Automatic Initializer

I am wondering if it is possible to make any implementation of a specific Interface take a specific action automatically at the time when the Interface itself is initialized. Something like below: public interface MyInterface { public static…
Anju Maaka
  • 263
  • 1
  • 10
0
votes
0 answers

Aren't collection implementations (mutableList, mutableMap, etc) available in common / shared Kotlin code?

I setup a project only with common / shared code but Idea is telling me that there aren't any implementations for basic Kotlin collections like List, Map and Set. Why Kotlin doesn't provide those implementations in common code among platforms? Is…
0
votes
0 answers

How can i implement from this ERD to this EERD? (in oracle)

I got a few Person's they are named "Patient","Mitarbeiter" and "Arzt" . After that i got a Superclass for them named "Person". But i cannot implement it because of the foreign keys. I tried much things but forgot it now. Fehler beim Start in Zeile:…
zazaza
  • 9
  • 6
0
votes
2 answers

How I can determine if there is another element after the current one or not in java using list Structures in java

I'm trying to write an function named boolean hasNext() which checks if there is another element after the current one or not I have an class named TourElement, it contains a lot of points. Here is my code // class waypoint: public class Waypoint…
0
votes
1 answer

any tools to trace code using eclipse line by line?

It's been long time since I've asked a question so forgive my mistakes. So, I have a code which I don't understand. It's dealing with interface and super/sub class. I even have the answers to it but I just don't know how it got to the answer. My…
user372204
  • 69
  • 2
  • 10
0
votes
0 answers

Find a cycle containing more than 3 vertices using DSF if possible

I am implementing an optimal solution algorithm and need to find a cycle that contains more than 3 vertices, because diagonal connections are not allowed(only up/down, left/right). I'd greatly appreciate it, if any one has any suggestions or can…
Kim
  • 23
  • 6
0
votes
4 answers

Why do I get an error instantiating an abstract class?

I downloaded a NuGet package called Process.NET, and I try to use the Read() method from the IMemory interface in my main() function. I implemented it as in the GIT tutorial, but I am unable to create an instance of ProcessMemory like…
user9424483
1 2 3
99
100