Q. Create a class 'Student' with three data members which are name, age and address. The constructor of the class assigns default values name as "unknown", age as 'O' and address as "not available"....


Q.<br>Create a class 'Student' with three data members which<br>are name, age and address. The constructor of the class<br>assigns default values name as

Extracted text: Q. Create a class 'Student' with three data members which are name, age and address. The constructor of the class assigns default values name as "unknown", age as 'O' and address as "not available". It has two members with the same name 'setlnfo'. First method has two parameters for name and age and assigns the same whereas the second method takes has three parameters which are assigned to name, age and address respectively. Print the name, age and address of 10 students. Hint - Use array of objects

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here