0
is it overload from method in c++ .
marks{ getmarks(); } void marks::getmarks() { cout << "Enter marks for 3 subjects : " << endl; cin >> s1 >> s2 >> s3; }
1 Odpowiedź
+ 2
It is not overloading but just definition of something you only declared :)
marks{ getmarks(); } void marks::getmarks() { cout << "Enter marks for 3 subjects : " << endl; cin >> s1 >> s2 >> s3; }