31 Aug '13, 12pm

@EleapUy @chickentrinasal @PauloCorcuera @diegido @louishabitan kung gagawa kayo ng ICS check niyo ito

class TryShape { public static void DoSomethingWithShape (Shape s) { s.Draw (); s.RMoveTo (100, 100); s.Draw (); } public static void main (String argv[]) { /* using shapes polymorphically */ Shape shapes[] = new Shape[2]; shapes[0] = new Rectangle (10, 20, 5, 6); shapes[1] = new Circle (15, 25, 8); for (int i=0; i<2; ++i) { DoSomethingWithShape (shapes[i]); } /* access a rectangle specific function */ Rectangle rect = new Rectangle (0, 0, 15, 15); rect.SetWidth (30); rect.Draw (); } }

Full article: http://onestepback.org/articles/poly/oo-java.html

Tweets

Code Watch - via @gbcoalition

greenbuildermag.com 30 Aug '13, 6pm

In the past 10 years or so, green building product availability and technology has increased along with the revision of en...