function overidding is noting but a function have same name which present in both base class and derive class,we use virtual mechanisim in function overridding,but overloading occur between a...
Type: Posts; User: lipune; Keyword(s):
function overidding is noting but a function have same name which present in both base class and derive class,we use virtual mechanisim in function overridding,but overloading occur between a...
base class is a class fr wr we derive our new class by taking some or may all property of dt class and we also add some new implementation on dt class means derive class.ok .if u want more then tell...
that code is correct,but if u create a constant object then dt code is not correct,u have to write const classname&,like dt.ok,,,,,,,if u do not write const object then dt code is ok.
Dear arpan
constructor can not be virtual ,if u declare it as virtual ,1-object can not be create,2-again on dt time v table also not created.3-virtual means dt fun should define in...