@NoRib, correct me if i am wrong.. but the blog is the object, and open is a function performed on it... so the code shud be.. ahem.. rusty java Blog randomBlog = new Blog(); randomBlog.open(); while() //infinite loop!! duh!! { randomBlog.post(); } Cheers G3
5 comments:
if 'Open' were an Object, you'd rather declare it as
Open blog = null;
;)
On second thoughts,
Open blog = new Open();
@NoRib,
correct me if i am wrong.. but the blog is the object, and open is a function performed on it... so the code shud be.. ahem.. rusty java
Blog randomBlog = new Blog();
randomBlog.open();
while() //infinite loop!! duh!!
{
randomBlog.post();
}
Cheers
G3
throw new DontMakeFunOfJavaException();
Well a c# command would be
class blog
{
bool open = false;
public blog blog()
{
initialize component;
}
public void open()
{
open = true;
}
Post a Comment