Hi Guys,
If I have a class as:
I wanted to know that can we initialize the data members of the class student just by using the data types in constructor?Code:----------------------------------------------------------------------------- class student { string name; int roll_no; char id; public: student(int,char,string); ---->constructor with parameters }; ------------------------------------------------------------------