How would you implement inheritance using VB.NET/C#?
Answers were Sorted based on User's Feedback
Answer / raghumadhav tirunagari
Derived Class : Basecalss
VB.NEt : Derived Class Inherits Baseclass
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajender chauhan
C# : Class A:B
VB.Net Class A Inherits B
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mr vinod kumar
When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the .NET system class library framework, it may be part of some other application or .NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties, and events of that base class ? including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - effectively overriding the original behavior and replacing it with new behaviors. Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged. In VB.NET we can use implements keyword for inheritance, while in C# we can use the sign ( :: ) between subclass and baseclass.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
How many classes can a single .NET DLL contain?
What are tuples?
How can you assign styles to webforms?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
what is the difference between assemblyinfo and webconfig files?
What is Auto-event wireup? what is the default value for this? when u change the value what will happen?
What are the various authentication mechanisms in ASP.NET ?
1 Answers Digital GlobalSoft, Satyam,
What are the Types of authentications in IIS
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
what are partial classes and their use?
Which is better union or union all?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)