0

Member Initializers

You have a class ''Student'' with two members, "age" and "num". Fill in the blanks to initialize those members in the constructor initializer list with the corresponding values. Student::Student(int a, int b) ________age(a), num (b) { }

25th Dec 2020, 6:41 AM
Ricardo M Delgado
Ricardo M Delgado - avatar
5 Antworten
+ 3
The first one is : (colon) and second one is num
14th Apr 2021, 11:07 AM
Bala Rohan K
Bala Rohan K - avatar
+ 2
: num Are the answers
28th Dec 2020, 5:41 AM
Abdul Wahab
Abdul Wahab - avatar
+ 2
What is the keyword for overloading an operator in C++?
6th Jul 2021, 8:58 AM
Kukutla Sandeep
Kukutla Sandeep - avatar
+ 1
Can you plese show your attempt ? And also can you add the language tag with your question?
25th Dec 2020, 7:00 AM
Adnan Chowdhury
Adnan Chowdhury - avatar
+ 1
: num
9th Feb 2022, 8:53 AM
michael mitiku
michael mitiku - avatar