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

What are meta-annotations?

0 Answers   Cyient,


how to print the below in java? * * * * * * * * *

2 Answers  


What is a layout manager?

1 Answers  


Does java allow overriding static methods ?

0 Answers  


Write a function to find out longest palindrome in a given string?

0 Answers  






What is extension method in java?

0 Answers  


What is the purpose of finalization?

4 Answers  


How will you load a specific locale?

0 Answers  


What is getclass () getname () in java?

0 Answers  


What are the methods to rectify ambiguities in the interfaces in JAVA?

0 Answers   CGI,


Can an object subclass another object?

0 Answers  


What is strings in java?

0 Answers  


Categories