Troubleshooting this TutorialSometimes, even though you try hard to understand the information in a tutorial, things don't work out quite like you want it to. This page is here to help you resolve any problems you might be having with the Hello World tutorial. The Common Mistakes section describes common problems that people have when doing the things in this tutorial, and how to resolve them. The Frequently Asked Questions section describes questions that people have that aren't related to mistakes, but rather, trying to understand the stuff better or exploring how it can be used. If your problem or concern isn't addressed here, feel free to add a comment below, so that I know where you're having trouble. I like to keep these pages fairly clean, so I may remove comments that I felt like have been addressed. If I remove your comment and you don't feel like the problem has been fixed, repost the question and we'll take another look at it. If a tutorial has a mistake in it, I will fix the mistake and reply to the comment with a brief explanation. However, after a couple of weeks I'll likely go back and remove the original comment as well as my reply, because, hopefully, the problem will have been fixed, and it won't be a concern any more. |
Common MistakesNone listed yet… |
Frequently Asked QuestionsNone listed yet… |
PLEASE!
Task 2: Create a class Person with member data name, ID, constructor, destructor and member function display.
Create a class Student_info, which inherits class Person, in which member data for faculty number, group and faculty are added. The class contains a constructor, member functions for accessing the data, for change of ID and for displaying the data.
Add Class Student_marks, which inherits class Student_info and contains marks in 3 subjects, constructor, member function show () to display the marks and member function av() to calculate the average grade.
That seriously sounds like a homework assignment from somewhere. I'm happy to help, but I'm not going to do your homework for you. How many of my tutorials have you gone through? This requires several of them, and it would probably be best if you get through at least the ones about building classes and the one on inheritance.
Post preview:
Close preview