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. can any body help to get the code for receiving SM
View Tutorial          By: ash at 2008-05-15 01:07:19

2. Hi there,
this doesnt work in IE7 or firefo

View Tutorial          By: Gerrard at 2009-10-17 15:19:24

3. Class TypeCasting
{
public static v

View Tutorial          By: kishoree koli at 2013-03-14 03:00:31

4. That's really daam !!! simple example :) .........
View Tutorial          By: akshay sharma at 2011-05-03 04:49:15

5. hello friends .. am looking for the java code that
View Tutorial          By: ahmed at 2008-09-18 21:48:21

6. hi sr.
do u have any idea , how to convert

View Tutorial          By: gohila at 2012-08-15 14:31:31

7. i am developing a video streaming pc server to j2m
View Tutorial          By: ziathegreat at 2009-05-19 13:19:15

8. Good work. Although it would be nicer if you can p
View Tutorial          By: frisked09 at 2011-05-26 23:52:34

9. Hello,

A volatile variable does not

View Tutorial          By: aayush at 2009-11-16 07:38:23

10. Please, send me a working JSP version ,i got error
View Tutorial          By: Pang at 2008-01-11 00:01:52