Computers and Technology

10) Identify the statement that will throw an error in the following code? class Student { public: void SetName(string studentName); void Display(); private: string name; char grade; int Grade(); }; void Student::Display() { grade = Grade(); … } int Student::Grade(){ … } void SetName(string studentName) { name = studentName; } int main() { Student stu1; stu1.Display(); … stu1.Grade(); } a. stu1.Grade(); b. stu1.Display(); c. int Student::Grade() d. void Student::Display() {

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:00, eden1017
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 24.06.2019 17:00, harlon852
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
image
Computers and Technology, 25.06.2019 01:00, 59279
Why is outfitting a workplace with video games in a technology development company consiered a strategic use of money
Answers: 1
Do you know the correct answer?
10) Identify the statement that will throw an error in the following code? class Student { public: v...

Questions in other subjects:

Konu
English, 12.12.2020 16:50