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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dheeraj kumar
NA
1
1.3k
The abstract classes
Jan 22 2013 8:38 AM
The abstract classes are base classes.The abstract classes are always having child classes.The abstract classes doesn't having instance variables.The abstract classes having reference variables.
Example on Abstract Class:
abstract class Dept1
{
protected int sal;
public void eSal()
{
sal=5000;
}
public abstract void tSal();
}
class Dept2:Dept1
{
int bonus;
public override void tSal()
{
bonus=500;
int ts=sal+bonus;
MessageBox.Show(ts.toString());
}
}
private void button1_click()
{
dept2 obj=new Dept2();
obj.eSal();
obj.tSal();
}
Reply
Answers (
1
)
Show content of radiobuttonlist in a label
Datetimepicker control