Object can only inherit from one parent?

I had a an online test for a job and they asked this question and I'm not sure whether I blew it. It sounds like it may be a trick question.

I answered yes.

I think the question may have actually been "objects can only inherit from a parent" in which case, what would that answer be?
EindoofusAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Frank WhiteCommented:
Perhaps this article might provide some clarification: .NET and Multiple Inheritance - David C. Chou
0
anarki_jimbelSenior DeveloperCommented:
Hmm... Not too correct question, I'd say. Not objects. Classes. Classes may inherit from one parent only.

"objects can only inherit from a parent"  - there is one parent in inheritance but there are grand parent, grand-grand... etc.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anarki_jimbelSenior DeveloperCommented:
http://msdn.microsoft.com/en-us/library/ms973803.aspx

"In the .NET world, only single inheritance is allowed, so each subclass will have only one base class.

There are three types of inheritance that .NET supports: implementation, interface, and visual. Implementation inheritance refers to the ability to use a base class's properties and methods with no additional coding. Interface inheritance refers to the ability to use just the names of the properties and methods, but the child class must provide the implementation. Visual inheritance refers to the ability for a child form (class) to use the base forms (class) visual representation as well as the implemented code.

A class in .NET may inherit from a class that has already inherited from another class. In addition you may use an interface or even multiple interfaces within a class."

If question was like ""objects can only inherit from a parent" " - the answer would be No as it may inherit from grandparents... Hate these questions and people asking them :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.