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



Ask a Question

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. what we have to write in simple comparator class
View Tutorial          By: shiva at 2015-04-18 09:19:17

2. very easy to understand ... a quite a good example
View Tutorial          By: Dinesh at 2012-09-22 18:19:45

3. Nice example of System.arraycopy()function. Thank
View Tutorial          By: Rahul Raj at 2015-08-17 03:11:44

4. I tried to create an object on my 6th code but i a
View Tutorial          By: AARON VICU√ĎA at 2009-03-24 05:20:24

5. hi am new to java! i need some simple java program
View Tutorial          By: Anu at 2010-09-08 08:17:49

6. thank you. its very useful :)
View Tutorial          By: Farhanna at 2013-05-22 05:33:46

7. crystal clear explanation
View Tutorial          By: digant at 2009-12-08 09:10:06

8. I want to get SCJP!
View Tutorial          By: Johny at 2009-08-24 22:48:56

9. had the sample problem.. java.io.IOException: HTTP
View Tutorial          By: java at 2012-08-22 09:39:57

10. In the absence of frameworks, this is the best exa
View Tutorial          By: Vitalis at 2014-04-29 17:47:16