Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface iiInterface : Object {
- // private abstract int _age
- public abstract int foo { get; protected set; }
- public abstract void print();
- }
- public class ClassA : Object, iiInterface {
- public int foo { get; protected set; }
- public ClassA() {
- this.foo = 2;
- }
- public void print() {
- stdout.printf("From A\n");
- }
- }
- public class ClassB : ClassA/*, iiInterface*/ {
- public void print() {
- stdout.printf("From B\n");
- }
- }
- int main (string[] args)
- {
- var bar = new ClassB();
- bar.print();
- return 0;
- }
- [Print]
- void prin(string s){
- stdout.printf(s + "\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement