What is Ideal Design of Class?
Answers were Sorted based on User's Feedback
Answer / venkat
declare variables as Private and methods which accesses
variables as public.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ershad md sk
Ideal Design of Class is First identity Different Business
Objects and identity Business Data & Business Methods on
which u r working on............Think U are working on
SHAPE class think shape is an object and Draw & erase are
business methods which u should Operate ON..And shape has
Different data objects like Square,Rectangle
| Is This Answer Correct ? | 0 Yes | 0 No |
Can I overload to string method
What is singleton class and how can we make a class singleton?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?
What access modifiers can be used for class ?
Is java based on c?
Is null an object in java?
Explain the concept of polymorphism with examples?
Is 0 an irrational number?
What do you mean by scope of variable?
Explain public static void main(string args[]) in java.
What is the multi-catch block in java?
What is difference between char array and string?