answersLogoWhite

0

Declare it final.

User Avatar

Wiki User

9y ago

What else can I help you with?

Related Questions

How do create your own class on battlefront 2?

You cannot create your own class in Battlefront 2. That feature was created in later games in the series.


How can you create a virtual copy constructor?

You cannot. Constructors are specific to the class in which they are declared. They cannot be inherited and so they cannot be virtual.


What is the need to create an abstract class without abstract?

Actually there is no need & most importantly - you cannot create an abstract class without using the abstract keyword


Create an instance to an abstract class?

You cannot create an instance of an abstract class. For ex: Public abstract AbsTest { … } AbsTest ex = new AbsTest(); Lets say we have a class declaration AbsTest that is abstract and then I try to instantiate it, the compiler will give me an error stating that "An Abstract class cannot be instantiated"


Stiff man disease is it inheritable?

No, SPS is not inheritable.


Can you have a final abstract class?

No. The abstract keyword means that you cannot instantiate the class unless you extend it with a subclass. The final keyword means that you cannot create subclasses of that class.Combining them would lead to an unusable class, so the compiler will not let this happen.


Why class is not protected in c?

In C#, the concept of protected is to be accessible to derived classes.Let's assume that a class can be modified as protected. When you want to subclass from such class, wait, you cannot see that class, because only the derived classes can see it, but the one you want to create is not one of them (yet).... I think this is the reason a class cannot have protected accessibility


Are gamete cells mutations and somatic cells mutations inheritable?

Since only gamete cells actually participate in the creation of a new organism, it is only the mutations in gamete cells which are inheritable; mutations in somatic cells are not inheritable.


Is twisted bowel inheritable?

No。


Is polio inheritable?

Not by birth


Is Multiple Sclerosis inheritable?

no


How do you call an abstract class from main method?

An abstract class cannot have a constructor and hence you cannot invoke the constructor of the class - i.e., you can instantiate an abstract class and hence you cannot call the constructor of an abstract class.