Multiple fields declaration

For the fields with the same type we can declare them together.


class Rectangle{
   int Width, Height;
}

They can share the same modifiers as well.


class Rectangle{
   public int Width, Height;

}
w_w__w._j__a__va_2s__.___co___m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.