Questions tagged [implements]

`implements` is a keyword in several programming languages used to denote implementation of an interface.

implements is a keyword in several programming languages which support OOP (such as Java or PHP) used to denote interface implementation (as opposed to extends used to denote implementation inheritance).

Related

404 questions
0
votes
1 answer

Boolean Algebra Function

Implement the following Boolean function with Decoder and external logic gates as necessary. Draw the logic diagram and label all input and output lines. F = XYZ + (X' + Z') I am having trouble converting the Function above to K-maps. I believe…
0
votes
3 answers

Why my variables cannot receive a value (interface)

I having a problem to send a value on the variables. Why my variable cannot receive the value when I input a value? I've no idea to do... import java.io.*; public class StudentApp { public static void main (String [] args) throws IOException { …
Edie
  • 65
  • 1
  • 2
  • 11
0
votes
2 answers

java - connecting interface to class member

Say I have an interface A and a class B that implements it. Now, I also have some class C which extends class D (which means that it can't also extends B) but I also need there the functionality of interface A. The solution I know is to have a…
user1034092
  • 67
  • 1
  • 5
0
votes
1 answer

Implements Behaving Like Polymorphic Inheritance

BACKGROUND AND SET UP Okay, let's see if I can get this question to "make sense". The following code examples are meant to communicate the principles and reflect the ideas behind the code. If the code in detail is of interest to you, you can find…
Thomas
  • 6,291
  • 6
  • 40
  • 69
0
votes
1 answer

intergerSet implements Comparable

The purpose of this project is: Create a class called IntegerSet that implements Comparable interface to be used in simple set applications. Each object of class IntegerSet can hold positive integers in the range 0 through 255 and most common set…
0
votes
1 answer

Search implementation Questions on android

I am a newbie here and hope you can help me out to clear some of my understanding (or misunderstanding). I have been reading for days and trying out based on Android guide to implement search function but it really didn't work out well. Perhaps I've…
user3599442
  • 39
  • 1
  • 7
0
votes
0 answers

Can't call my iterator function?

I'm not sure why my getIterator() function I made isn't working correctly. Below are the 3 classes I have and they implement each other. However specifically under the class MapView at the line Iterator gameObjects =…
user2318083
  • 567
  • 1
  • 8
  • 27
0
votes
1 answer

Implementation and inheritance problems within a class in Java

I have a class here that when I try to run gives me the error: The type GUI must implement the inherited abstract method ActionListener.actionPerformed(actionEvent) void is an invalid type for the variable actionPerformed Syntax error on token "(",…
Ben
  • 95
  • 1
  • 4
  • 16
0
votes
1 answer

ArrayList implemented in custom list class Java

I am trying to write a class that implements arraylist, but I will observe and repaint my gui whenever an element is added to the list, or removed from the list. Everything is syntactically right, but there seems to be a logic error in my code…
0
votes
1 answer

Using extra methods when implementing an interface

I have made an interface that covers all classes using generics, however I need additional methods for one class that implements this interface. I like to be able to use the dynamic binding of declaring variables as the interface, and then…
Alex
  • 47
  • 1
  • 2
  • 6
0
votes
1 answer

How can I implements ProgressBar class?

I want to edit onDraw method for my progressbar. But in my class I use extends to Activity class. When I search on the internet I see , I should extend to ProgressBar class. But I etends activity so How can I implements ProgressBar class? my…
user3086226
  • 93
  • 1
  • 7
  • 18
0
votes
2 answers

Sorting a collection of objects in Java where implementing class is final

I'm using a public API provided by a 3rd party and I have a collection of objects that are defined as final. The object has a method getName() which lets me retrieve the String name of the object. What I need to do is sort the objects by name and…
0
votes
3 answers

What's different from the two ways with an interface?

Write a stand along interface or not like this, spinner.setAdapter(this.mAdapter); OnItemSelectedListener spinnerListener = new OnItemSelectedListener(this,this.mAdapter); spinner.setOnItemSelectedListener(new Spinner.OnItemSelectedListener(){…
learner1
  • 123
  • 2
  • 3
  • 13
0
votes
2 answers

How to extend or implement classes?

Picture to show task: First I am sorry, for my bad to for expressing my mind. I have such a task, I don't need that you do it for me. Vehicle is parent class for Sedan (Cause Sedan class is String type). How to extend or implement Vehicle class…
galvakojis
  • 408
  • 1
  • 5
  • 19
0
votes
2 answers

Weird Generics Behaviour with Interface

I want to create a generic class that takes elements of some generic type that are comparable. So I do: public class Foo> and inside the class Foo I have things like: public void bar(T t) and I'm assured that I can write code…
insumity
  • 5,311
  • 8
  • 36
  • 64