Comment on Tutorial - Abstract classes in Java By Kamini



Comment Added by : Anil Chalhotra

Comment Added at : 2013-02-16 08:04:03

Comment on Tutorial : Abstract classes in Java By Kamini
hi What is the meaning of this line ,
you cannot declare abstract constructors, or abstract static methods.
---------------------
in ur example u have taken a constructor

abstract class Figure {
double dim1;
double dim2;
Figure(double a, double b) {
dim1 = a;
dim2 = b;
}
// area is now an abstract method
abstract double area();
}
------------

can we take a constructor in abstract class


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. sUPER eXPLAnation
View Tutorial          By: Surendra at 2015-06-13 07:23:56

2. the example is not at all working though i remove
View Tutorial          By: sanju at 2011-09-07 07:50:38

3. Sorry, I can't understand what is really apply and
View Tutorial          By: Ejita at 2012-02-01 05:38:09

4. Excellent for beginners
View Tutorial          By: PRN at 2012-05-22 09:49:15

5. but it will be very simple if we use pointer in it
View Tutorial          By: Hot Water Systems at 2009-06-01 03:51:48

6. Hi,
how can make a report to display one re

View Tutorial          By: david at 2013-08-30 16:09:23

7. how can we split 12+12 into three tokens like 12,+
View Tutorial          By: arjun at 2012-11-26 11:07:24

8. Excellent explanation. How can I take input from t
View Tutorial          By: Joe at 2013-03-31 11:02:28

9. what's the deffrint between "String[] [] Arra
View Tutorial          By: ahmad at 2009-08-24 03:01:11

10. Please send the complete code.. thanks!
View Tutorial          By: Roger22 at 2010-03-11 00:41:07