abstract-methods Questions
11
There are already several SO questions on why there is not abstract static method/field as such, but I'm wondering about how one would go about implementing the following psuedo-code:
class Animal...
Adieu asked 29/5, 2010 at 23:3
5
Imagine I have a class called Engine as an abstract base class. I also have ElectrictEngine and FuelEngine classes which derive from it.
I want to create a method for refueling the engine.
Should ...
Serpasil asked 8/4, 2011 at 15:12
5
Solved
Is it better to put a default implementation of a method in a superclass, and override it when subclasses want to deviate from this, or should you just leave the superclass method abstract, and hav...
Trave asked 29/8, 2010 at 17:11
5
Solved
I have some basic questions about abstract classes/methods. I know the basic use of abstract classes is to create templates for future classes. But are there any more uses for them? When shou...
Hendershot asked 27/7, 2010 at 14:46
5
Solved
Is it necessary for an abstract class to have at least one abstract method?
Disconcerted asked 17/2, 2010 at 18:35
2
Solved
What is the equivalent of the following C# code in C++/CLI?
public abstract class SomeClass
{
public abstract String SomeMethod();
}
Homeless asked 5/12, 2009 at 1:33
3
Solved
Hi I have a class "A" with as abstract method
protected abstract List<Contributor> GetContributors(List<SyndicationPerson> contributersList);
I want to override this method in derive...
Expatriate asked 29/11, 2009 at 18:54
10
Solved
I have the following interface in Java
public interface IFoo
{
public abstract void foo();
public void bar();
}
What is the difference between foo() and bar()?
When should I use abstract?
Bot...
Hypsography asked 29/9, 2009 at 12:54
© 2022 - 2024 — McMap. All rights reserved.