Amazines Free Article Archive
www.amazines.com - Wednesday, March 20, 2019
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search
Google
Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (133287)
 Advice (160803)
 Affiliate Programs (34733)
 Art and Culture (73668)
 Automotive (145610)
 Blogs (75015)
 Boating (9841)
 Books (17130)
 Buddhism (4124)
 Business (1328182)
 Business News (426308)
 Business Opportunities (366249)
 Camping (10952)
 Career (72756)
 Christianity (15838)
 Collecting (11636)
 Communication (115063)
 Computers (241941)
 Construction (38988)
 Consumer (49675)
 Cooking (17060)
 Copywriting (6567)
 Crafts (18209)
 Cuisine (7537)
 Current Affairs (20377)
 Dating (45772)
 EBooks (19684)
 E-Commerce (48191)
 Education (185169)
 Electronics (83454)
 Email (6389)
 Entertainment (159809)
 Environment (28932)
 Ezine (3038)
 Ezine Publishing (5443)
 Ezine Sites (1552)
 Family & Parenting (110893)
 Fashion & Cosmetics (196381)
 Female Entrepreneurs (11841)
 Feng Shui (130)
 Finance & Investment (310232)
 Fitness (105879)
 Food & Beverages (62843)
 Free Web Resources (7937)
 Gambling (30212)
 Gardening (25074)
 Government (10522)
 Health (629194)
 Hinduism (2206)
 Hobbies (44019)
 Home Business (91543)
 Home Improvement (251292)
 Home Repair (46115)
 Humor (4812)
 Import - Export (5449)
 Insurance (45110)
 Interior Design (29544)
 International Property (3485)
 Internet (190964)
 Internet Marketing (146296)
 Investment (22824)
 Islam (1168)
 Judaism (1357)
 Law (80455)
 Link Popularity (4592)
 Manufacturing (20829)
 Marketing (98747)
 MLM (14136)
 Motivation (18211)
 Music (26998)
 New to the Internet (9476)
 Non-Profit Organizations (4048)
 Online Shopping (129606)
 Organizing (7800)
 Party Ideas (11856)
 Pets (38082)
 Poetry (2234)
 Press Release (12669)
 Public Speaking (5620)
 Publishing (7522)
 Quotes (2407)
 Real Estate (126609)
 Recreation & Leisure (95233)
 Relationships (87445)
 Research (16155)
 Sales (80302)
 Science & Technology (110147)
 Search Engines (23445)
 Self Improvement (153069)
 Seniors (6226)
 Sexuality (35941)
 Small Business (49279)
 Software (82946)
 Spiritual (23461)
 Sports (116069)
 Tax (7658)
 Telecommuting (34074)
 Travel & Tourism (307092)
 UK Property Investment (3118)
 Video Games (13422)
 Web Traffic (11724)
 Website Design (56801)
 Website Promotion (36556)
 World News (1000+)
 Writing (35761)
Author Spotlight
BARRY BROWN

Barry K. Brown has been in the Sign, Banner, Decal and Display Business for over 20 years. It isn't ...more
SHOVON JOARDER

Shovon Joarder has been working as Freelance Marketing Project Manager for over four years. He also ...more
SONU PARASHAR

Sonu Parashar is a full time Internet Marketer. He is action-oriented and has a strong work ethic. H...more
KC JACKSON

KC Jackson is a marketer and avid follower of the latest personal development news. To take advantag...more
STEPHEN REEVES

Stephen lives in the south east corner of Queensland Australia where the weather is incredible. Step...more


What Is Inheritance? by Milecia McG





What Is Inheritance? by
Article Posted: 11/14/2018
Article Views: 457
Articles Written: 24
Word Count: 541
Article Votes: 0
AddThis Social Bookmark Button

What Is Inheritance?


 
Software,Website Design,Career
If you've gotten into the world of programming, you've probably heard the term inheritance. For some reason, this term is hard for people to explain but easy to understand. So here's an explanation of inheritance that actually makes sense.

Think about yourself and your parents. Odds are that you've heard you have certain features that are really similar to your parents. Maybe you have your dad's eyes and your mom's nose. Those are inherited traits. You have them because your parents have them.

It's the same in programming. You can have a class that gets properties and methods from another class. Say that you have a class that describes cars. It has properties for the number of doors, the type of engine, and the make and model. Now let's say you want to make a new class that only describes cars made by Audi. You still need to know how many doors the cars have and their engine type and model.

To save yourself some time, you can inherit those properties from the car class in the Audi class.

You can see that inheritance is pretty straightforward. If there are certain properties or methods you want to use in class, you can get them from an existing class. When you make a new class using inheritance, the new class is called a derived class. That's because it is using bits and pieces of other classes. The existing class is called a super class. A super class is a class that doesn't inherit from any other classes.

The beauty in a derived class is that you can always keep it up to date with the super class because any changes you make to the super class will be automatically applied to the derived class. Another reason derived classes are beautiful is because they can have all of the super class properties and have their own properties and methods.

Just like with you and your parents. Sure you have some similar traits, but you still have unique features of your own. You might be tall and both of your parents are short. You might be more outgoing than your parents. Whatever it is, you have something that no one else has. The same can apply to classes.

For example, in the Audi class you might want to include the year of the car and a method to calculate how many miles per gallon you get. You can include those things without changing the car class. All you have to do is include them in the Audi class and you're done. That doesn’t take away any of the inherited properties and they are unique to the Audi class.

Just remember, inheritance means you can use all of the properties and methods in one class in another. Any changes you make to the super class will be inherited by all of the derived classes. Also, derived classes can have their own unique properties and methods.

Thanks for reading and I hope this made sense of inheritance!

Don't forget about that free JavaScript tutorial. It's had over 200 downloads in the past month so it must be good for something. Get your copy and start learning about JavaScript. Click here for your free copy

Related Articles - programming, beginners, web development, inheritance,

Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the AUTHOR ONLY if you select PRIVATE and to this PUBLIC PAGE if you select PUBLIC, so write accordingly.
 
Please enter the code in the image:



 Author Login 
LOGIN
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
   90  Days-1.5 Million Views  

 

Great Paranormal Romance

World News


STEPHEN BYE

Steve Bye is currently a fiction writer, who published his first novel, ‘Looking Forward Through The...more
STEVE HANEY

Steve is the owner/operator of Whiskey Jack Painters, a premier painting company based out of Alma, ...more
LAURA JEEVES

At LeadGenerators, we specialise in content-led Online Marketing Strategies for our clients in the t...more
ANITA WAGGONER

Anita Waggoner grew up in a small town in Eastern Washington. She attended business-college in the S...more
NAIMA ROCCA

Since Naima was a child, writing has been her passion. Influenced by her passion, she received both ...more
GENE MYERS

Author of four books and two screenplays; frequent magazine contributor. I have four other books "in...more
SUSAN FRIESEN

Susan Friesen, founder of the award-winning web development and digital marketing firm eVision Media...more
JAVIER VBOIX

For the time being just a newbie in the Insurance Industry but a quick learner, soon-to-be expert Ja...more
LARRY WHITTLER

Author of Wrestler/That Dog Hunts; Available at the Kindle Store ...more
STEVERT MCKENZIE

Stevert Mckenzie, Travel Enthusiast. ...more

HomeLinksAbout UsContact UsTerms of UsePrivacy PolicyFAQResources
Copyright © 2019, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license