Posts by user55 • 53 points
1 post
-
4
votes1
answer71
viewsQ: What is the difference between two code snippets with and without a constructor?
I’m having trouble understanding what a constructor does. Does it initialize a variable so it’s not null? If yes, this would not be solved easily by doing what is written in the second code snippet?…