Computer Science, asked by pramodpandey030902, 3 months ago

what is initialiser list ? Explain any two applications .in c++​

Answers

Answered by sunitasrma2014
0

Answer:

Initializer List is used in

initializing the data members of a class. The

list of members to be initialized is indicated

with constructor as a comma-separated list

followed by a colon. Following is an example

that uses the initializer list to initialize x and y

of Point class.

Similar questions