Re: compiling..

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"maya" wrote...

Thomas gave you excellent suggestion to where to begin, but I will anyway
answer some of the specific questions you had as well.

it says on top of Acme.cs "namespace Acme" I assume this means
Acme.cs has to be in a dir called 'Acme'? (am assuming namespace
is equiv to Java's packages; is this right?)

Not quite. Java's packages are used for both logical and physical
structuring, but in .NET it's "only" the logical structure.

You can have the source code anywhere you like, and the MSIL (roughly
corresponding to Java's bytecode) is put into an assembly.

public class Calendar : Control, IPostBackEventHandler,
IPostBackDataHandler

but Control is a class, not an interface (can u implement classes?)

Here it's actually similar to Java, that a class can extend only one
superclass, but implement many interfaces.

However, the syntax for extending and implementing is the same in C#, the
colon (:), which means that if it would have been Java, it would have looked
like:

public class Calendar
extends Control
implements IPostBackEventHandler, IPostBackDataHandler


/// Bjorn A


.



Relevant Pages

  • Re: Learning Lisp design techniques (not just the language itself)?
    ... maximum compile-time checking of the usage of the API? ... How to define a package interface? ... Should you extend CLOS? ... objects with property lists? ...
    (comp.lang.lisp)
  • Re: [perfmon] Re: [perfmon2] perfmon2 merge news
    ... criticism of the current set of perfmon2 system calls, ... opposition to the goal of having strong typing of the interface. ... extend but that is at the expense of losing strong typing. ...
    (Linux-Kernel)
  • Re: Inheritance versus Composition
    ... you really need some poking around and see for yourself some examples of the trouble you run into by naively extending base classes which you can of course only do once. ... Its considered legacy today because IF you choose to use this mechanism, you can forget about having your data model extend anything else. ... Let the interface describe a notify mechanism and let your concrete class implement this. ...
    (comp.lang.java.help)
  • Design Aesthetics & Working With Portals
    ... room in one of the margins for a flag type of icon if I extend the ... within the portal's comfort zone. ... but they strain the intuitiveness of the interface. ...
    (comp.databases.filemaker)
  • Re: RaisePostBackEvent question
    ... Im asking why it doesnt work if you *dont* implement IPostBackDataHandler. ... dont need to do anything with either method of that interface. ... as described below, eventArgument behaves correctly. ... > RaisePostBackEvent called. ...
    (microsoft.public.dotnet.framework.aspnet)