You're new here, aren't you?
Click Connect with Facebook to join NetworkedBlogs. NetworkedBlogs is a community of bloggers and blog lovers. Join the fun, add your blog, and connect with others who read and write about subjects you like.
Understanding Inheritance in OOP
The example below explains inheritance, an important property of OOP languages.
We have three classes: living, animal & dog. The dog inherits all the characteristics of living & animal base classes however, the plant does not(being an instance of just the living class).
#include<iostream>
using namespace std;
class living
{
int energy;
public:
void getenergy(
Followers not concentrated in one particular network. They are distributed among many.
Questions? contact: networkedblogs@ninua.com
Copyright (C) 2008, Ninua, Inc.