Comment on Tutorial - Abstract classes in Java By Kamini
Comment Added by : zishan
Comment Added at : 2010-05-20 00:21:46
Comment on Tutorial : Abstract classes in Java By Kamini
that was gud example to explain abstract. i have doubt.....
here is one program which has 1 abstract class without abstract method. its also works fine.
Then what the use of abstract class, any how it does not allow to create objects, we can use this with concrete class to implement method defined in abstract class which we have to extend the abstract class then why not directly in concrete class why need of abstract class.
can anyone explain this point. mail me plz
[email protected]
abstract class demo {
public void show() {
System.out.println("not abstract method");
}
// public abstract void display();
}
class demo1 extends demo {
public void display() {
System.out.println("abstract method");
}}
class program {
public static void main(String args[]) {
demo d = new demo1();
d.show();
d.display();
//d.display1();
}
}
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
Related Tutorials
Java program to get location meta data from an image
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
Archived Comments
1. i like your explanation it is understandable
View Tutorial By: gerasmia yen-yen d. at 2009-07-15 21:12:39
2. hello, that was very useful
but i have a by
View Tutorial By: echo at 2011-04-05 11:50:41
3. i have downloaded the code and calling the the SMS
View Tutorial By: sandeep das at 2009-04-09 11:12:16
4. Can some body throw more light on TRANSIENT ....
View Tutorial By: Anish at 2010-08-03 07:30:58
5. hi i want to run a c program in java program but i
View Tutorial By: jyothi at 2014-11-27 06:40:27
6. I am getting the following exception
Error
View Tutorial By: Balraj Selvakumar at 2008-10-14 03:12:20
7. hello Ramlak I am getting Error Time Out At Step 6
View Tutorial By: hardik at 2011-04-13 05:12:06
8. Great examples Eric! Really helped me out a lot, m
View Tutorial By: Markus at 2008-11-12 05:27:05
9. this is no doubt a simple program for the learner
View Tutorial By: shweta at 2008-07-12 01:18:59
10. i'm a student and new to all these HTML and JSP.
View Tutorial By: sillee at 2009-08-13 03:22:14