what is initialiser list ? Explain any two applications .in c++
Answers
Answered by
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
Computer Science,
1 month ago
English,
1 month ago
Math,
1 month ago
Math,
3 months ago
Social Sciences,
10 months ago
Science,
10 months ago
Hindi,
10 months ago