Question: Java Programming- 1- Briefly describe how OO programming , as compared to non-OO programming, makes it easier to write elegant software. Please explain briefly. 2-
Java Programming-
1- Briefly describe how OO programming , as compared to non-OO programming, makes it easier to write elegant software. Please explain briefly.
2- Give two specific example, , where it would make sense to have a class variable (that is a variable declared as static). That means to give an example where it would make sense for all objects of a class to share a variable. This should be a non-trivial example. The count of the number of objects or anything similar is trivial.
3-Look in the Java APIs for the javax.swing.JOptionPane class. It contains many class methods. Why would the Java class designers choose to make them class methods instead of instance methods?
Please explain briefly each question with some examples.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
