Posted on 2006-05-08
Last Modified: 2010-03-31
Can you have an abstract class without abstract methods? explain
Question by:Johny24max
    1 Comment
    LVL 92

    Accepted Solution

    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

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    dividesSelf challange 15 60
    bunnyEars challenge 6 46
    Spring Controller - inheritance in request parameter 3 30
    nestparen challenge 4 37
    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now