OKIEWARDOYO

C#.NET No.7-4

Dec 4th, 2012
1,442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. //Saybareng.cs
  2. using System;
  3. public class Saybareng
  4. {
  5.     public static int Main( )
  6.     {
  7.         Manusia[] Man = new Manusia[4];
  8.  
  9.         Man[0] = new Okie();
  10.         Man[1] = new Ralia();
  11.         Man[2] = new Nega();
  12.         Man[3] = new Manusia();
  13.  
  14.         foreach (Manusia Orang  in Man)
  15.         {
  16.             Orang.Saying();
  17.         }
  18.         return 0;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment