class CA
{
public :
void fun()
{
//do something
}
};
int main()
{
CA obj;
obj.fun();
// CA *obj=new CA();
obj->fun();
}
what is the difference between creating CA obj then calling function and creating CA obj=new CA then calling function?
what implication can this code can do in project ?