Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
abstract method
1 Answer(s)      4 years and 3 months ago
Posted in : Java Interview Questions


Can we have abstract class with no abstract methods?

Advertisement
View Answers

October 30, 2010 at 11:00 AM


Hi,

Here is the answer.

It is used to provide a template for concrete subclasses down the inheritance tree. so we can't have abstract class with no abstract method .

Thanks.



Related Tutorials/Questions & Answers:
abstract method
abstract method  is final method is in abstract class
abstract method
abstract method  Can a concrete class have an abstract method
Advertisements
abstract method
abstract method  Can we have abstract class with no abstract methods
What is an abstract method?
What is an abstract method?   Hi, What is an abstract method? thanks
Abstract class and abstract method
not necessary to have all methods abstract, it may have non abstract method... of a concrete class. A single abstract method must exists in a abstract class. A concrete class cannot hold abstract method. An abstract class is meant
abstract method in php - PHP
abstract method in php  How do i implement the abstract method in php? Which is the best way
An Abstract class may or may not have abstract method.
. In the BaseAbstractClass class there is a abstract method which is having no defination... the definition of abstract method baseMethod1()"); } } class Prog22 { public... of abstract method baseMethod1() baseMethod2() method called form BaseAbstractClass
Abstract Class in Java
. An abstract method is declared without body but is followed by a semicolon. If we have to define an abstract method under class then we have to make the class..., the abstract method of abstract class must be defined in the subclass. Points
The abstract Keyword : Java Glossary
;    Abstract keyword used for method declaration declares... an interface which will missing all method bodies in the program. Abstract class... { ... ? abstract Type MethodName(); ? ? Type Method
abstract class
abstract class  what is abstract class .why we use it or what is the need of this class?   Abstract class is like base class which contains abstract method and cannot instantiated.   Please go through
Using Abstract Class
method should be abstract. We can't instantiate the object of the abstract class...Using Abstract Class          We does not make a object of the abstract
abstract class
abstract class  Can there be an abstract class with no abstract methods
Abstract class
Abstract class  what is an Abstract class
Abstract class
Abstract class  Can an abstract class be final
Abstract class,Abstract methods and classes
is used with methods and classes.  Abstract Method An abstract method one... by default. Abstract method provides the standardization for the " name... Abstract methods and classes     
Abstract and Interface
Abstract and Interface  what is the difference between Abstract and Interface accurateatly
Java Abstract Class
lets you put the common method names in one abstract class without having... Java Abstract Class       An abstract class is a class that is declared by using the abstract keyword
abstract class
abstract class   Explain the concept of abstract class and it?s use with a sample program.   Java Abstract Class An abstract class is a class that is declared by using the abstract keyword. It may or may not have
Abstract class
Abstract class  j   An Abstract class is a base class which... with an abstract keyword. For more information, visit the following links: http://www.roseindia.net/help/java/a/java-abstract-class.shtml http://www.roseindia.net/java
Abstract programs - Java Beginners
Abstract programs  give me the Abstract Methods programms and defind the Abstract Method and Abstract Class  Hi friend, This code will help you. abstract class A{ public abstract abs_value
abstract class
abstract class  abstract class AbstractClass{ } is possible and compile the class or any compile time error occur tell me the answer Blockquote
Abstract class
Abstract class  Calendar cal=Calendar.getInstance() We know that Calendar is an abstract class so it can't be instantiated. So how we can say that cal is an instance of Calendar??? Beginner Question I suppose. Thanks in advace
Abstract and Interface
Abstract and Interface  What is interface? When time is most suitable for using interface? Why we use interface instead of abstract? What is the differences between abstract and interface?   An interface defines a set
Abstract class and interface in Java
be implemented, but only extend one class an abstract class may have some method...Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between
Abstract class - Java Beginners
abstract method it should be implemented in its subclasses 3.abstract methods...Abstract class  Why can use abstract class in java.?when abstract class use in java.plz Explain with program.   abstract class abs{ public
Interface and Abstract class
methods and these method implemented by sub classes. Abstract class definition...Interface and Abstract class  hello,, Can some body tell me what is the difference between an Interface and an Abstract class?   hi, Very
variables and methods declared in abstract class is abstract or not
variables and methods declared in abstract class is abstract or not  variables and methods declared in abstract class is abstract
Abstract Classes - Java Interview Questions
abstractMethod() { System.out.println("The class method in abstract...("The instance method in abstract...Abstract Classes  Why we cann't instantiate a Abstract Classes? Even
abstract class - Java Interview Questions
abstract class  Explain the abstract class and abstract method...://www.roseindia.net/java/master-java/abstract-class.shtml http://www.roseindia.net/help/java/a/java-abstract-class.shtml Hope that it will be helpful for you. Thanks
Java Abstract Class Example
as well as non-abstract methods. It is not necessary that the abstract method... and call the method of abstract class. Then we will compile and execute the program...Java Abstract Class Example In this section we will read about the Abstract
code for abstract class
code for abstract class  code for abstract class
Advertisements
 

 

 

DMCA.com