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 difference between a type and class?

1064


How to use the sreamReader class to read form a text file?

941


Can u list some style properties of List Box?

868


Can we create extension method for interface?

843


Is c# and c sharp same?

804


Why we use oops in c#?

929


Describe ado.net?

970


What is ado net in c#?

842


What is the process of Serialization?

945


What is generic delegates in c#?

914


What is .cshtml file?

881


What is integer c#?

853


Explain what are the steps for creating clr trigger?

826


What is data quality assurance?

842


What is the difference between selection and projection?

820