Question: java oop question public static void main(String[] args) { Foo.Bar bar = new Bar();//error! } Examine the main() method above to create a Bar object
java oop question![java oop question public static void main(String[] args) { Foo.Bar bar =](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f305d18045e_76966f305d11a36d.jpg)
public static void main(String[] args) { Foo.Bar bar = new Bar();//error! } Examine the main() method above to create a Bar object from the definition provided in Q1 above. The compiler say the line in main is in error Why? How do you fix it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
