Click here to Skip to main content
15,117,830 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is the main difference between inheritance and thread
Posted
Comments
   
Very bad! My 1.
Practically all the questions "What is the difference between {0} and {1}" are completely incorrect.
Is that a school question? If so, leave such school :-)
--SA

1 solution

I guess the main difference is that one is inheritance and one is a thread.

Inheritance is a design concept (from Wiki)
"In classical inheritance where objects are defined by classes, classes can inherit other classes. The new classes, known as subclasses (or derived classes), inherit attributes and behavior of the pre-existing classes, which are referred to as superclasses (or ancestor classes)"

A thread happens during code execution (from Wiki)
a thread of execution is the smallest unit of processing that can be scheduled by an operating system, it generally results from a fork of a computer program into two or more concurrently running tasks

Basically, they have nothing to do with each other in the slightest!
   
Comments
   
Dylan, this is all good, but answering such questions in principle is the way to put yourself in cumbersome situation if first place. I appreciate you humor though.
I think we need just to remove such questions, for everyone's good, including OP's. Normal OP should take the hint and post another question later.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900