Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we have a non static member function in a base class to
be override in derived with static modifier?

Answer Posted / siva

No We cannot Create. It shows an error.

A static member 'Analysis.Class3.ss1()' cannot be marked as
override, virtual, or abstract

class Class2
{
public Class2()
{
}
public virtual void ss1()
{
System.Windows.Forms.MessageBox.Show("Base :
ss1");
}
}
class Class3:Class2
{
public Class3()
{
}
public static override void ss1()
{
System.Windows.Forms.MessageBox.Show
("Derived:s1");

}

}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is join in c#?

927


How to generate strong name key file or which command is used to generated strong name key file?

946


Is string nullable c#?

994


What is clr in c#?

839


What are the advantages of clr procedure over t-sql procedure?

993


What is the difference between icomparer and icomparable in c#?

938


What is the default value of boolean variable?

971


How does the clr work?

913


What is the default value of datetime in c#?

975


Is everything an object c#?

929


How do you sort a list in c#?

857


Why do we use interfaces in c#?

939


Explain Constructor and destructor?

959


What is the object class in c#?

960


what are implementation inheritance and interface inheritance?

933