hello sir
i m confused with concept name like which is const object and which is const member function the code is below
Code:
#include<iostream>
#include<conio>
class student
{
int id;
public:
void set(int i){
id=i;
}
void display()const //is it const object or const member function
{
cout<<id;
}
};