Question: 2. State whethere the following statement are ture or false The methods of a class must be public Non-static method cannot access static variable Static

 2. State whethere the following statement are ture or false The

2. State whethere the following statement are ture or false The methods of a class must be public Non-static method cannot access static variable Static method cannot access non-static variable In deep copying, each reference variable of the class refers to its own object Private variable of a class can be accessible from any class in the same project A class can have more than one constructor A static variable can be invoked by the name of an object of the class a. 3. Assume that Circle class has a constructor Circle (double radius, Point p). State either these statement are valid or invalid: Circle c1 4, new Point O; Circle c2 new Circle (4,3,2), Circle 3 new Circle (new Point (4,2), 5.2); Circle 04 new Circle ( (4.5+3.2)*10, new Point(5,7)); b. What will be the radius of c5 if: Circle c5 = new Circle (new Point (4,2).getY(), new Point(5,7))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!