Re: Storing records from a parsed file



Ah - I think I've sorted it out.

I can now have data1.function()

or

data2.function()


etc


However, I can still call function() directly:

function()

which seems very odd Indeed. The only instances of function are within
classes data1 and data2, and these definitions are different, so I
don't see why I can get away with calling it without reference to a
base class - for a start how does it know whivh one to call... will
investigate :-p

.



Relevant Pages

  • Re: Delegate.CreateDelegate()
    ... Is there any existing sample which I can reference to? ... > base class and attach an event handler to it in a regular way. ... >> and a delegate declared at namespace level, ... >> I can do it in .NET framework using Delegate.CreateInstacne, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Another question about inheritance (up-casting and down-casting)
    ... > public void finalize(){ ... > base class construct ... > sub class construct ... changes the way you reference it. ...
    (comp.lang.java.programmer)
  • passing by reference in j# for Whidbey
    ... variables by reference, the attribute tag must be applied while declaring the ... I think this is bad code convention. ... there should be a marker when calling a function ... Calling without the ampersand should throw a compiler error. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: arraylist.clear
    ... >> And how do I make this vaiable last forever eventhough I need to ... >> clear it for undetermined periods of time? ... > Calling ArrayList.Clearjust clears the contents of that ArrayList. ... > It does nothing to the variable holding a reference to the list itself. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: virtual destructors in base classes
    ... Why would a base class decrement ... about the reference count in the first place. ... the fact its destructor is running means the reference ... The base class should not artificially ...
    (microsoft.public.vc.atl)