Search:

Type: Posts; User: dicdic

Search: Search took 0.07 seconds.

  1. Re: Write a class encapsulating the concept of a circle: Help Needed

    sorry for late reply. I don't do anything related to programming during weekends
    the reason is you don't have main method in your class.
    public static void main(String[] var) is a special method in...
  2. Re: Write a class encapsulating the concept of a circle: Help Needed

    you declared the class Point with uppercase P
    java is a case sensitive programming language.
    then it should be final Point center not final point center.



    because you made it final. just...
  3. Re: Write a class encapsulating the concept of a circle: Help Needed

    you already have created your own/customized Point class. So why do you have to import java.awt.Point?

    Circle class:
    You need to provide getters for Point and radius in your Circle class.

    I...
  4. Re: Write a class encapsulating the concept of a circle: Help Needed

    Okay I get it now. So the x and y are the coordinates.


    I think the requirement wants you to override the toString method of Object
    If you are using netbeans or eclipse, just press Ctrl +...
  5. Re: Write a class encapsulating the concept of a circle: Help Needed

    what do you mean by that?
    do you need to know where exactly the center of circle located?
    if that's the case, then, should your circle be in cartesian plane?
    then your circle would have...
Results 1 to 5 of 5