0% found this document useful (0 votes)
14 views

Assignment

This document describes two classes - Teacher and Student - with attributes like name, department, salary for Teacher and rollno, name, gender, department, semester for Student. Both classes have no-argument and parameterized constructor functions and a Display() function to output the attribute values.

Uploaded by

Pirzada Swati
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Assignment

This document describes two classes - Teacher and Student - with attributes like name, department, salary for Teacher and rollno, name, gender, department, semester for Student. Both classes have no-argument and parameterized constructor functions and a Display() function to output the attribute values.

Uploaded by

Pirzada Swati
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment

Teacher
Vehicle
Name,
Department, Name,
Salary model,
Gender Price,
age company,

No argument constructor function


No argument constructor function Parameterized construction function
Parameterized construction function Display()
Display()

Student

Rollno,
Name,
Gender
Department,
semester

No argument constructor function


Parameterized construction function
Display()

You might also like