4 Topics

Member Avatar for
Member Avatar for Pyler

Suppose I have the following generic classes; Queue<T> KellysCoffee CheckOut and the following generic interfaces QueueInterface OrderLineInterface Suppose I want `KellysCoffee` to extend Queue class and implement `OrderLineInterface` This is how I've done it private class KellyCoffee<Order extends Queue<Order>> implements OrderLineInterface{} Now when I try to implement `CheckOut` public class …

Member Avatar for Pyler
0
294
Member Avatar for Tomi1988

Hi! I'd like to create a simple table game by Swing. I have a JFrame and a JPanel variable. I want to add JButtons to this JPanel, but I'd like to create an own class. I made a class that extends JButton (inheritence): public class GameField extends JButton {...} So …

Member Avatar for JamesCherrill
0
168
Member Avatar for gourav_rao

1. need to read details of customer in a Account class 2. need to inheritence Account class to define a method for fixed deposit & saving deposit in main class i have to just call all this class pls help ....

Member Avatar for JamesCherrill
0
82
Member Avatar for nuclear

To be specific I'm trying to implement this into a small game. What I'm thinking of is having a base/default class for derived objects such as player, enemies, tiles and so on and later the derived classes would inherit this base class and add whatever is needed depending on the …

Member Avatar for Despairy
0
194

The End.