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. Sir,
i am implementing the above code in w

View Tutorial          By: Girish padki at 2010-01-15 21:50:50

2. I need code for read write mifare 1k card using No
View Tutorial          By: amarendra at 2010-12-02 21:12:08

3. is anyone going to post the complete version of th
View Tutorial          By: anon at 2009-04-21 12:26:51

4. useful for me
View Tutorial          By: ganga at 2010-10-06 00:51:51

5. Thks a lot..... The way of giving explanation and
View Tutorial          By: Hari at 2011-04-08 02:58:06

6. rms programe
View Tutorial          By: hardik at 2008-03-28 23:06:58

7. Good example
View Tutorial          By: Lahiru at 2012-04-09 05:24:21

8. Good Job.
Keep up the good work .

View Tutorial          By: Syed Imran at 2010-11-27 06:54:36

9. Pl send some sample program for speech to text wit
View Tutorial          By: gokul at 2012-09-27 10:28:19

10. hi!!!!!!!!! MR. RAMLAK will u plz tell the methode
View Tutorial          By: balwant at 2008-11-10 17:19:44