Re: [Vala] how to call the base class constructor
- From: "Jared Moore" <jaredm gmx com>
- To: picca <picca synchrotron-soleil fr>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] how to call the base class constructor
- Date: Fri, 8 Aug 2008 23:03:20 +1000
Hi,
As far as I know that's not possible at the moment in vala. The way
that objects are constructed is quite different from Java or C#.
There's some more information here [1].
Jared
[1] http://live.gnome.org/Vala/Tutorial#head-5442d562e53d8d61dad060c5f9a2ddd561d4cf98
On Fri, Aug 8, 2008 at 8:08 PM, picca <picca synchrotron-soleil fr> wrote:
re-Hello
I have this
public class Base {
string name;
public Base(string name) {
this.name = name;
}
}
then
public class Child {
public Child(string name) {
/* how to call the Base class constructor */
Base(name)
}
}
so how can I call the base constructor and more generaly a Base class
method ?
Thanks
Frederic
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]