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 |
How many types of design patterns are there?
How to sort the elements in HashMap
What are the two ways you can synchronize a block of code?
Howmany classes that package java.applet.* contains?
What are keywords and reserved words in java?
what is the difference between pagecontext and servletcontext?
What is http client in java?
Describe the term diamond problem.
What is the purpose of the enableevents() method in java programming?
What is lambda expression in java?
why interfaces are faster than abstract classes?
what is d difference between deep cloning and shallow cloning in core java?