C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Java - Abstract Class And Abstract Method
WhatsApp
Senthilvelan Sambamoorthy
Aug 21
2016
548
0
0
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();
}
}
Abstract Class
Abstract Method
Java
Up Next
Java - Abstract Class And Abstract Method