abstraction

Can you have an abstract class without abstract methods? explain
Johny24maxAsked:
Who is Participating?
 
objectsCommented:
yes, by defining it as abstract

public abstract class MyAbstractClassWithout AbstractMethods
{
   public void xyz()
   {
       // whatever
    }
}

This would be used when you want to ensure the class must be subclassed to use
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.