[HD Pg 0, Sec. 4.7.0 - exercise]
Posted: Wed Aug 26, 2020 12:19 am
This question is from the book OCP Java se 11 part 1
Exercise 4.7
Ques 4
Add an instance variable of type Bird in Bird. Initialize this variable
on the same line using "new Bird()" syntax. Instantiate a Bird object
in TestClass's main and execute it. Observe the output.
Here I am not able to understand what is the meaning of initialize the variables and the meaning of instantiate a Bird Object. Can you tell me the solution for this one
Exercise 4.7
Ques 4
Add an instance variable of type Bird in Bird. Initialize this variable
on the same line using "new Bird()" syntax. Instantiate a Bird object
in TestClass's main and execute it. Observe the output.
Here I am not able to understand what is the meaning of initialize the variables and the meaning of instantiate a Bird Object. Can you tell me the solution for this one
