Object Oriented Programming - Old Questions

Question Answer Details

3. Define a student class (with necessary constructors and member functions) in Object Oriented Programming (abstract necessary attributes and their types). (Write a complete code in C++  programming language).

• Derive a computer Science and Mathematics class from student class adding necessary attributes (at least three subjects). 

• Use these classes in a main function and display the average marks of computer science and mathematics students.

10 marks
Asked in 2066

Answer

AI Generated Answer

AI is thinking...