CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

changing variable types of a function of a derived class topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2006, 04:56 AM
Junior Member
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mrclash is on a distinguished road
| More
changing variable types of a function of a derived class

Hello,

I have a class that uses some variables to access a sql database, and I want to make a derived class that inherits all the methods of this class, because the derived one will do exactly the same process that the parent one, but with a postgres database, thus I've got to use diferent type variables to acces the database.

There's one big function in the class that does all the DB stuff, and I want to know if there's any way to inherit the function but with only changing the type of some vars inside this function.

Thanks!

Sergi
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Types of Timers coderzone C# Programming 2 03-09-2011 09:44 AM
Changing control names of application kawin C# Programming 1 07-27-2008 02:37 AM
Incrementing variable within an equality/divisibility test che3ver C++ Programming 1 07-18-2008 05:31 AM
operator+ in derived classes More options JimLangston C++ Programming 0 03-30-2007 01:17 AM
Types of computer viruses JokesBot The Lounge 0 10-29-2006 02:57 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:19 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board