What is Ideal Design of Class?

Answers were Sorted based on User's Feedback



What is Ideal Design of Class?..

Answer / venkat

declare variables as Private and methods which accesses
variables as public.

Is This Answer Correct ?    1 Yes 1 No

What is Ideal Design of Class?..

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

Post New Answer

More Core Java Interview Questions

Write a program to create a binary Tree ?

2 Answers  


What are annotations in java?

0 Answers   Impetus,


Explain listiterator and methods in listiterator?

0 Answers  


What is string manipulation?

0 Answers  


What are generic methods?

0 Answers  






Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify

3 Answers   Ericsson,


What is the lifetime and scope of a variable?

0 Answers  


What is an object?s lock? Give name of object?s that have locks?

2 Answers  


What is the return type of readLine() when end of a file is reached?

2 Answers  


How does map works in java?

0 Answers  


What is the difference between the final method and abstract method?

0 Answers  


methods in Applet?

1 Answers  


Categories