derived class how to

From: f (ffunus_at_yahoo.com)
Date: 11/30/03


Date: 29 Nov 2003 22:34:54 -0800

Suppose I have

class Data{
...
}

class DData extends Data{
...
}

interface A {
   Data getData();
}

interface DA{
   DData getData();
}

What I want from DA is to focus on a special kind of Data, while it
still can be used as A. But it does not compile. How can I fixed it?

Can I do this:

interface A {
   void getData(Data data);
}

interface DA{
   void getData(DData data);
}



Relevant Pages

  • Re: derived class how to
    ... > class DData extends Data{ ... > interface DA{ ... > DData getData(); ... but maybe DA should extend A and you can add the extra behaviour ...
    (comp.lang.java.programmer)
  • Behavior of out parameters and dependencies
    ... Let's say there is Some Interface called IFoo. ... it is allocated by GetData using CoTaskMemAlloc. ... GetData(&dwSize, &pData); ... memory for ppBuffer), COM would try to dereference pdwSize, ...
    (microsoft.public.win32.programmer.ole)
  • Re: derived class how to
    ... > class DData extends Data{ ... > interface DA{ ... > DData getData(); ... > void getData; ...
    (comp.lang.java.databases)
  • Re: derived class how to
    ... > class DData extends Data{ ... > interface DA{ ... > DData getData(); ... > void getData; ...
    (comp.lang.java.programmer)
  • Re: derived class how to
    ... > class DData extends Data{ ... > interface DA{ ... > DData getData(); ... > void getData; ...
    (comp.lang.java.help)