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



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. Incomplete article; Singleton session bean? And re
View Tutorial          By: vaibhav sakpal at 2013-08-29 07:35:37

2. Thanks it worked for me after lot of search for CO
View Tutorial          By: VIRAJ at 2012-12-26 11:56:24

3. 1. U R NOT CONNECTED UR MOBILE WITH SYS
2.

View Tutorial          By: jAYGANESH at 2011-06-22 02:14:43

4. simple examples that i can understand ,.,,by the w
View Tutorial          By: Chriskuang at 2015-03-19 03:05:59

5. example is good but in c++ we can't use printf().
View Tutorial          By: vikas at 2009-10-26 20:12:08

6. hi ... i want to receive SMS on the com port ... b
View Tutorial          By: Ahsan at 2010-02-16 19:49:26

7. I need
text,number,text,number,text,num

View Tutorial          By: kabil dev at 2015-05-29 13:10:40

8. Hi,
Downloaded all the five files but there

View Tutorial          By: Ratan at 2014-09-25 11:38:49

9. Thanks :)
View Tutorial          By: Anuj Bhatnagar at 2015-05-06 14:02:19

10. this is really helpful example for Learning RMS in
View Tutorial          By: Ahmed Nawaz Mari at 2011-06-30 05:29:18