English, asked by dharshini1543, 1 month ago

algorithm for multiple
inheritance​

Answers

Answered by babygirl7738
2

Answer:

Simple Program for Multiple Inheritance Algorithm/Steps: Step 1: Start the program. Step 2: Declare the base class student. Step 3: Declare and define the function get() to get the student details. Step 4: Declare the other class sports. Step 5: Declare and define the function getsm() to read the sports mark.

Explanation:

mark as brainliest

Answered by khushigagain
1

Step 1: Start the program.

Step 1: Start the program.Step 2: Declare the base class student.

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.Step 4: Declare the other class sports.

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.Step 4: Declare the other class sports.Step 5: Declare and define the function getsm() to read the sports mark.

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.Step 4: Declare the other class sports.Step 5: Declare and define the function getsm() to read the sports mark.Step 6: Create the class statement derived from student and sports.

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.Step 4: Declare the other class sports.Step 5: Declare and define the function getsm() to read the sports mark.Step 6: Create the class statement derived from student and sports.Step 7: Declare and define the function display() to find out the total and average.

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.Step 4: Declare the other class sports.Step 5: Declare and define the function getsm() to read the sports mark.Step 6: Create the class statement derived from student and sports.Step 7: Declare and define the function display() to find out the total and average.Step 8: Declare the derived class object,call the functions get(),getsm() and display().

Step 1: Start the program.Step 2: Declare the base class student.Step 3: Declare and define the function get() to get the student details.Step 4: Declare the other class sports.Step 5: Declare and define the function getsm() to read the sports mark.Step 6: Create the class statement derived from student and sports.Step 7: Declare and define the function display() to find out the total and average.Step 8: Declare the derived class object,call the functions get(),getsm() and display().Step 9: Stop the program.

Similar questions