Re: derived class how to

From: Jose Rubio (spam_at_airphoria.com)
Date: 12/01/03


Date: Mon, 01 Dec 2003 05:37:21 GMT

What errors are you getting ?

"f" <ffunus@yahoo.com> wrote in message
news:8f4ce98a.0311292234.6bf3185@posting.google.com...
> 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)
  • derived class how to
    ... class DData extends Data{ ... interface DA{ ... DData getData(); ... void getData; ...
    (comp.lang.java.programmer)