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
Cuong Me
NA
8
368
Inheritance and Generics? Factory class?
Oct 24 2019 4:52 AM
I have a grid class (will remove most of the properties to keep it short)
public class WinGrid
{
public List<WinGridRow> Rows
{
...
}
}
public class WinGridRow
{
public WinGridRow(WinGrid parent)
{
// Many properties and methods
}
}
Basically I want to inherit the Grid class but the Rows property returns a list of GridRow. The GridRow class does what I what to do but I want to inherit it and add more specific methods and properties. I what to know the best approach and to go about it. Generics? Factory?
Any help will be appreciated.
Thanks
Reply
Answers (
6
)
Remove time from showing on DateTime.
how to Encrypt or Secure URL in MVC