VB.Net工厂/摘要 [英] VB.Net Factory/Abstract
问题描述
我正在构建一个应用程序,该应用程序从数据库读取并在选项卡和gridview控件的文本框控件中显示数据.
常规页面-显示常规信息
在选定的项目"上,将转到一个页面,其中包含4个选项卡,每个选项卡显示与常规"(组合)相关的详细信息,并在gridview中显示详细的项目.
我已经创建了具有所有相关信息的通用类
PortfolioInfo
我将如何构造此类并创建4个抽象类.
我已经阅读了很多文章,但是在设置上仍然不清楚.
我是否可以在较大的类中定义抽象类?
我必须为每个类初始化变量吗?
我该在通用类和抽象类中调用get方法吗?
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?
推荐答案
我将如何构造这个类并创建4个抽象类从它们中提取.
How will I construct this class and create 4 abstract classes that pull from them.
反过来说,你已经知道了.
您将要构建一个抽象类,该类将定义(如果不实现)通用功能,然后使您的Tab类超越该抽象类.
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.
这篇关于VB.Net工厂/摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!