[Vala] Question about creation methods



Hello,

If a class has a creation method e.g. VBox(bool homogeneous, int spacing) and another class is extending it e.g.
public class MyVBox : VBox {
   public MyVBox () {}
}

what happends with VBox's creation method? Is MyVBox in an invalid state because it instantiates the base class with g_object_new without any properties?

Another question would be if base access of creation methods will be possible in the future:
  public MyVBox () {
      base (true, 0); //or base.alternative_creation_method (true, 0)
  }

Thank you,
Vlad





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]