473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Inherits AND Implements

namespace Foo {

public interface IDoStuff {
// method declarations
}

public abstract class Fee {
// abstract methods for the subclasses to inherit
}

public class Fum {
// Needs to inherit from Foo.Fee class
// Needs to implement Foo.IDoStuff interface
// but I can't seem to phrase this class's declaration correctly
}
}

It's late, and my brain is overloaded. How should I declare the Foo.Fum
class?
--
Peace & happy computing,

Mike Labosh, MCSD
"I have no choice but to believe in free will."
Nov 16 '05 #1
3 1769
Mike Labosh wrote:
namespace Foo {

public interface IDoStuff {
// method declarations
}

public abstract class Fee {
// abstract methods for the subclasses to inherit
}

public class Fum {
// Needs to inherit from Foo.Fee class
// Needs to implement Foo.IDoStuff interface
// but I can't seem to phrase this class's declaration correctly
}
}

It's late, and my brain is overloaded. How should I declare the Foo.Fum
class?


public class Fum : Fee, IDoStuff
Nov 16 '05 #2

"Mike Labosh" <ml*****@hotmail.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
namespace Foo {

public interface IDoStuff {
// method declarations
}

public abstract class Fee {
// abstract methods for the subclasses to inherit
}

public class Fum {
// Needs to inherit from Foo.Fee class
// Needs to implement Foo.IDoStuff interface
// but I can't seem to phrase this class's declaration correctly
}
}

It's late, and my brain is overloaded. How should I declare the Foo.Fum
class?
public class Fum : Fee, IDoStuff
{

} --
Peace & happy computing,

Mike Labosh, MCSD
"I have no choice but to believe in free will."

Nov 16 '05 #3
> public class Fum : Fee, IDoStuff

OMG! I can't believe it's that simple. YOU RULE! THANK YOU!
--
Peace & happy computing,

Mike Labosh, MCSD
"I have no choice but to believe in free will."
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff Molby | last post by:
Ok, I've googled long and hard, but I can't find anything relevant on this one. I am now at the mercy of your good nature. <g> I have 3 projects in my solution: One app and 2 libraries. I am...
2
by: Jet Leung | last post by:
Hi all, In VB.net if I want to inherits a Class and implement a interface I can wrote like this: Class A Inherits CObject Implements IObject ..... End Class
2
by: Todd Brooks | last post by:
I have a coclass that implements a dual interface. The thing that's a little unusual is that the coclass doesn't inherit directly from the interface, rather it inherits from an implementation class...
5
by: owais | last post by:
Hi, I have a problem, I want to implements Parent class interface methods in child class. for e.g -------------- Test1.vb ---------------- Imports System Imports System.Web.UI Imports...
7
by: Chris Lane | last post by:
Hi, I have the following class declaration and the ide is giving the following errors. Interface 'System.Web.UI.IPostBackDataHandler' is already implemented by base class...
1
by: Mike9900 | last post by:
I would like to return an object which inherits an interface. A web service instantiate a class that inherits that interface and returns that object. But I get error when referencing the web...
4
by: Gazarsgo | last post by:
Came across this today using .NET Framework 1.1 Version 1.1.4322: VB.Net code: Public Interface IFace1 Property Foo End Interface Public Interface IFace2 Inherits IFace1
8
by: Jim | last post by:
What is the difference between using Inherits and Implements? I think I get it, but I want to be sure.....
7
by: Bart_D | last post by:
Hi, Can anybody explain me what's the difference between for example: imports system.data implements ICallbackEventHandler inherits System.Web.UI.Page Thanks Bart
1
by: Jack Jackson | last post by:
On Fri, 11 Apr 2008 13:59:23 -0700 (PDT), nottarealaddress@hotmail.com wrote: When you have a public property with a private variable to hold its contents, you can't name both the same. With...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.