New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
B.Tech Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
PROSENJIT MANN...
(467)
Lenin
(364)
Mr. Anindya
(190)
Last 7 Days
Shobha Manasa
(1774)
PROSENJIT MANN...
(1601)
Lenin
(1522)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
Java program to create an abstract class
Posted Date: Total Responses:
0
Posted By:
Sunil Reddy
Member Level:
Platinum
Points/Cash
: 2
import java.lang.*;
abstract class Shape
{
abstract void numberOfSides();
}
class Traingle extends Shape
{
public void numberOfSides()
{
System.out.println("three");
}
}
class Trapezoid extends Shape
{
public void numberOfSides()
{
System.out.println("four");
}
}
class Hexagon extends Shape
{
public void numberOfSides()
{
System.out.println("six");
}
}
public class Sides
{
public static void main(String arg[])
{
Traingle T=new Traingle();
Trapezoid Ta=new Trapezoid();
Hexagon H=new Hexagon();
T.numberOfSides();
Ta.numberOfSides();
H.numberOfSides();
Project Feedbacks
No feedbacks found. Be the first to respond and make money from
revenue sharing program
.
Post Feedback
You must
Sign In
to post a feedback.
Next Project:
Java program that allows the user to draw lines,rectangles and ovals
Previous Project:
C program, using pointer for string comparison
Return to Project Index
Post New Project
Related Projects
Student Management System
Chat application in JAVA
Implementation Of Recursive Descent Parser
First come first serve
C program that uses a stack to check for matching left and right parentheses.
Advertise Here
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.