[Vala] Inheritance and construct



I'm have a problem with de inheritance and the constructors.
In c++ the inheritance loosks like

class padre{
protected:
int a,b,c;
public:
padre(int pa,int pb,int pc){
a=pa;
b=pb;
c=pc;
                           }
           }

class hija: public padre{
private:
int d;
public:
hija(int pa,int pb,int pc,int pd):padre(pa,pb,pc){
d=pd;
                                          }
                           }

but in Vala I read de examples and don't find how to some thing like this.

<<winmail.dat>>



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