Program
#include “iostream.h”
#include “conio.h”
class student
{
protected:
int rno;
public:
void getnumber(int a)
{
rno=a;
}
void putnumber()
{
cout << "\n\nRNO:" << p1="x;" p2="y;" score="s;" total="p1+p2+score;" score=" << total; } void main() { result s1; clrscr(); cout << ">
}
Output
HYBRID FUNCTION
RNO:11
MARKS OBTAINED
PART1 83.5
PART2 77.5
sports
Total score = 186.300003
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24