Re: Inherited class
From: Kevin Spencer (kevin_at_DIESPAMMERSDIEtakempis.com)
Date: 01/18/05
- Next message: Kevin Spencer: "Re: Inherited class"
- Previous message: darrel: "Re: asp.net application and IE browser settings"
- In reply to: Franck Diastein: "Re: Inherited class"
- Next in thread: MattC: "Re: Inherited class"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 Jan 2005 12:25:23 -0500
C# syntax:
public class foo
{
public int i;
}
public class bar : foo
{
public int x;
}
VB.Net syntax:
Public Class foo
Public Integer i
End Class
Public Class bar
Inherits foo
Public int x
End Class
In this example, the class foo has one field, and integer named "i". The
class bar inherits foo, so it also has a field named "i." In addition, it
defines a field named "x."
So, you can use all of the (public or protected) properties, fields, and
methods of the foo class in the bar class. You can also use the additional
properties of the bar class in the bar class, but not in the foo class.
Pretty straightforward, eh?
-- HTH, Kevin Spencer Microsoft MVP .Net Developer Neither a follower nor a lender be. "Franck Diastein" <fdiastein@euskaltel.net> wrote in message news:eq51F3X$EHA.2984@TK2MSFTNGP09.phx.gbl... > Do you have some code/site to point me to ? > > It's what I'm trying to do with no success... > > TIA > > Kevin Spencer wrote: >>>Do you know how can I extend normal DataGrid's behaviour with a class ? >> >> >> Create a class. Inherit DataGrid. Extend it. >>
- Next message: Kevin Spencer: "Re: Inherited class"
- Previous message: darrel: "Re: asp.net application and IE browser settings"
- In reply to: Franck Diastein: "Re: Inherited class"
- Next in thread: MattC: "Re: Inherited class"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|