Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have am building an application that reads from the database and displays data in text box controls on tabs and gridview controls.

General Page - Display General Information

On Selected Item, will be taken to a page with 4 tabs each displaying detailed information related to the General (Portfolio) and also displaying detailed items in a gridview.

I have created a the General Class with all related information

PortfolioInfo

How will I construct this class and create 4 abstract classes that pull from them.

I have read many articles but still not clear on the set up.

Do I define the abstract classes withing the larger class?
Do I have to initialize the variable for each class?
Do I call the get method in the general class as well as the abstract?
Posted

1 solution

technette wrote:
How will I construct this class and create 4 abstract classes that pull from them.


You have got it the other way round.
You would be building an abstract class that would have define (if not implement) the common features and then make your tab classes over-ride this abstract class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900