Oops With Dotnet
Oops With Dotnet
When you create a struct object using the new operator, it gets
created and the appropriate constructor is called. Unlike classes,
structs can be instantiated without using the new operator. If you
do not use new, the fields will remain unassigned and the object
cannot be used until all of the fields are initialized.
class
interface
delegate
object,string
You have one base class virtual function how will call that function
from derived class?
Ans:
class a
{
public virtual int m()
{
return 1;
}
}
class b:a
{
public int j()
{
return m();
}
}