package q06;
record Product(int pNumber, String pName) {
// int regNo = 100;
static int regNo = 100;
public int getRegNumber() {
return regNo;
}
}
public class App {
public static void main(String[] args) {
Product p1 = new Product(1111, "Ink Bottle");
}
}
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Uteman
5 months, 4 weeks agoxplorerpj
6 months agominhdev
7 months, 3 weeks agojames2033
10 months, 2 weeks ago