Comment on Tutorial - Abstract classes in Java By Kamini



Comment Added by : satish

Comment Added at : 2012-04-07 10:35:38

Comment on Tutorial : Abstract classes in Java By Kamini
abstract class A {
abstract void callme();

void callmetoo() {
System.out.println("This is a concrete method.");
}
}

class B extends A {
void callme() {
System.out.println("B's implementation of callme.");
}
}

class AbstractDemo {
public static void main(String args[]) {
B b = new B();

b.callme();
b.callmetoo();
}
}satish


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. FILE:- lpton.pl......
.....................

View Tutorial          By: Prats at 2013-02-02 17:33:40

2. i just got to know about this and i am really imp
View Tutorial          By: spo_mega at 2009-06-11 07:16:38

3. this code is not working properly buddies. please
View Tutorial          By: hammad at 2011-06-10 01:53:39

4. Just what I was looking for. Great work. thx.
View Tutorial          By: SP Goh at 2008-03-24 01:09:09

5. sir there is no startapp(),destroyapp() and pause
View Tutorial          By: Sathish at 2012-08-20 08:49:33

6. i am not sure of this line(depends on your jvm) ,
View Tutorial          By: vpeddi at 2010-03-20 07:20:19

7. I want complete notes on java basics
View Tutorial          By: R madhavi at 2013-03-17 03:03:17

8. Hello to Every one!! :-),HERE I'AM NOT WRITING A C
View Tutorial          By: Pulkit Malviya at 2012-08-26 14:56:18

9. where do i download the DOM and SAX jar?
View Tutorial          By: David at 2011-11-11 03:04:11

10. really very-2 good site....

thanks

View Tutorial          By: Priti at 2012-02-06 03:00:13