How will call the function when we have One base class and virtual function

class a

{

public virtual int m()

{

return 1;

}

}

class b:a

{

public int j()

{

return m();

}

}

0 comments:

Post a Comment