View Single Post
  #1  
Old 08-06-2011, 02:53 PM
Adddeeee Adddeeee is offline
Registered User
Join Date: Aug 2011
Posts: 30
Adddeeee is on a distinguished road
Instance of a class?

Hi!

I'm new to GS2 and have a few (dumb) questions.

When it comes to classes and objects; is there any way to make an instance of a class? Like in Java you write something like:

Java:
PHP Code:
MyClass myObject = new MyClass(); 
Or should I look at classes in GS2 like a way to gather general functions?

I am a little bit confused on how the code structure should look like to be efficient.

Help is very much appreciated! Sorry for this n00b question though.

// Adddeeee
Reply With Quote