H.M\u00f6ssenb\u00f6ck
University of Linz, Austria
moessenboeck@ssw.uni-linz.ac.at
\u2022 Inheritance
\u2022 Interfaces
\u2022 Delegates
\u2022 Exceptions
\u2022 Attributes
\u2022 Threads
\u2022 XML Comments
// base class
int a;
public A() {...}
public void F() {...}
// subclass (inherits fromA, extendsA)
int b;
public B() {...}
public void G() {...}
\u2022 B inheritsa andF(), it addsb andG()
- constructors are not inherited
- inherited methods can be overridden (see later)
multiple interfaces.
\u2022 A class can only inherit from a class, not from a struct.
\u2022 Structs cannot inherit from another type, but they can implement multiple interfaces.
\u2022 A class without explicit base class inherits fromobject.
Leave a Comment
Good job. I didn't understood the abstract classes though, from what I read they seem to be like static ones.