Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Is it allowed to mark a method abstract method without marking the class abstract?

Pragya Keshap answered on February 4, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • how to instansiated abstract class
  • can normal class have abstract method
  • abstract class in java
  • Can abstract methods have static keyword
  • abstract class in java
  • abstract class vs non abstract class
  • interface vs abstract class java
  • how to make abstract method in java
  • is it necessary for abstract class to have abstract method
  • What are abstract methods in java
  • final method and abstract method
  • can abstract method be protected, default, private
  • abstract class in java
  • can you declare an abstract method in a non abstract class
  • Abstract method declaration
  • java abstract
  • can abstract class have non abstract methods in java
  • interface vs abstract class java
  • Java Abstract Class and Method
  • java.lang.number is interface or abstract class
  • abstract class java
  • Can we add a non-abstract method into abstract class?
  • Is it mandatory for an abstract class to have abstract methods?
  • Is it allowed to mark a method abstract as well as final?
  • single abstract method (SAM)
  • 2. Use Abstract Classes To Define Common Interfaces
  • Java Abstract Method
  • abstract class java
  • Java Abstract Class

  • Is it allowed to mark a method abstract method without marking the class abstract?

    0

    No. Java specification says that if there is at least one abstract

    method in a class, the class has to be marked abstract.

    https://www.tutorialspoint.com/can-we-define-an-abstract-class-without-abstract-method-in-java#:~:text=A%20class%20which%20contains%200,an%20abstract%20method%20in%20it.

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 04 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.