TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Java - Abstract Class And Abstract Method
Senthilvelan Sambamoorthy
Aug 21
2016
Code
474
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
ssvAbstract1.rar
// abstract class demonstration
abstract
class
one
{
abstract
void
show1();
void
show2()
{
System.out.println(
"\nWelcome"
);
}
}
class
two
extends
one
{
void
show1()
{
System.out.println(
"\nHave a Nice Day"
);
}
}
class
ssvAbstract1
{
public
static
void
main(String arg[])
{
two t =
new
two();
t.show1();
t.show2();
}
}
Java
Abstract Class
Abstract Method