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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. u hav done Nice job..
View Tutorial By: Rakesh at 2012-10-01 16:00:14
2. This is an old method although it works. The bette
View Tutorial By: Emiley at 2013-01-11 03:56:02
3. good going java samples
View Tutorial By: Rajesh at 2010-08-17 03:36:12
4. It worked. Thank U!
View Tutorial By: Abhijit Kurane at 2010-12-27 11:01:48
5. Hi guys.i have a simple doubt.
i want to ru
View Tutorial By: Muthukumar at 2011-12-29 07:30:56
6. I Want To Know More About Windows Azure Advantages
View Tutorial By: sathish at 2010-08-31 10:23:10
7. Hello, Can you please send me the complete code to
View Tutorial By: koksingh at 2008-01-15 00:22:40
8. Wow, Problem resolved ....
View Tutorial By: Muhammad Farrukh at 2011-08-29 21:02:09
9. It is very useful ....Thank U sooo much dear...
View Tutorial By: Augustine Francis at 2014-06-24 16:55:21
10. Thanks for Your valuable Explanation.
View Tutorial By: Srikanth at 2012-12-24 10:49:02