Cumulative Project 2 in Java

when I am printing this

System.out.println(ques1.answer0);

it is showing me null and when I am printing some int it is showing me 0.
I have checked all everything is fine then why is it happening?

I got the answer.
I did not actually specified instance field and constructor parameters equal.
:grinning: :smiley:

2 Likes