Question: 1. Consider the following class: class MyClass { private static int x = 20; private static int y; private static int z = 25; private

1. Consider the following class:

class MyClass { private static int x = 20; private static int y; private static int z = 25; private int abc = 1000; public void setFields() { x = 3; y = 4; z = 5; abc += 1000; } public static void modFields() { x = 7; y = 9; z = 10; } }

Which of the following would produce an error if used in the Main method of a program that includes this class?

A.
MyClass mc = new MyClass(); mc.modFields(); 
B.
MyClass.setFields();

C.
MyClass.modFields(); 
D.
MyClass mc = new MyClass(); mc.setFields();

2.

Which of the following are steps in Task Centered GUI Design?

A. Finalize
B. Design
C. Iterate
D. Analyze
E. Evaluate
F. Initialize

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!