Duki 552 Nearly a Posting Virtuoso 13 Years Ago Is there a way in java to do something similar to this: Copy to Clipboardclass Rectangle { public: int x; string y; private: int a; string b; } Or do you always have to specify public/private for each property? java 0 0 Share harinath_2007 56 Posting Whiz 13 Years Ago No..You cannot use the shortcut method. :) You need to specify the access specifier for each member variable separately with patience.. But it will be nice if oracle make changes like what you have said.. 1 0 Share Share Facebook Twitter LinkedIn Reply to this topic Be a part of the DaniWeb community We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge. Sign Up — It's Free!
harinath_2007 56 Posting Whiz 13 Years Ago No..You cannot use the shortcut method. :) You need to specify the access specifier for each member variable separately with patience.. But it will be nice if oracle make changes like what you have said.. 1 0 Share