We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I am facing an error
"MyBook.java:35: error: class Solution is public, should be declared in a file named Solution.java
public class Solution
^
1 error"
Day 13: Abstract Classes
You are viewing a single comment's thread. Return to all comments →
I am facing an error "MyBook.java:35: error: class Solution is public, should be declared in a file named Solution.java public class Solution ^ 1 error"
why? and is the code right?
Code:
public class MyBook extends Book {int p;
}