Question: Create a class named 'Student' with a string variable 'name' and an integer variable 'rollno'. Assign the value of rollno as ' 2 ' and

Create a class named 'Student' with a string variable 'name' and an
integer variable 'rollno'. Assign the value of rollno as '2' and that of
name as "John" by creating an object of the class Student. Once done assign and print the roll number, phone number and
address of two students having names "Sam" and "John" respectively
by creating two objects of the class 'Student.
in prorgramming c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question is incomplete which is causing some confusion It includes errors and inconsistencies especially regarding the assignment and printing of ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!