Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using GLib;
- public static void main(string[] args){
- var toto = new Toto();
- toto.internal_print();
- var sub = new SubToto();
- sub.internal_print();
- }
- public class Toto : GLib.Object
- {
- public Toto(){}
- public string internal_print(){
- if(get_type().name() != "Toto")return null;
- return "print only in Toto instance\n";
- }
- public string s{get;set;}
- public int i{get;set;}
- }
- public class SubToto : Toto
- {
- public void test(){
- stdout.printf("test\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement