Class is a user defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class. A class is like a blueprint for an object.
The data and functions within a class are called members of the class.
cout<<“The per of rn “<<rn<<“is”<<per;
O/P : The per of rn 10 is 76.8
To learn more about Class and Object in detail.
Join TCCI in Bopal and Satellite in Ahmedabad.
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/course/