Networking, Programming and Graphics Tutorials

Defining derived classes - C++ [1/1]

Type:
Defining derived classes - C++
Level: Intermediate Networking, Programming and Graphics Tutorials Networking, Programming and Graphics Tutorials 
Defining derived classes - C++
Date: 2006-Dec-08
Defining derived classes - C++
Visited: 984 times
Defining derived classes - C++
Rating: Defining derived classes - C++
Defining derived classes - C++
Author: Alex Plumpton

A derived class is defined by specifying its relationship with the base class in addition to its own details. The general from of defining a derived class is as shown. Here, class is a reserved word.

Defining derived classes - C++
The colon indicates that the derived_class_name is inherited from the base_class_name. The visibility-mode can be private, public or protected, which specifies the level of access of the base class data members and member function. The default visibility mode is private.

Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - Defining derived classes - C++ [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: defining functions in c  defining a member function  defining array sizes in programing in c++  Classes in C++ Example  inherit from two classes c++  stream classes in c++  base classes c++  relationship classes c++  deived classes C++   Stream classes in C++  stream classes c++  c++ virtual classes  DEC C++ Stream Classes  virtual Base Classes  C++ hierarchy stream classes  tutorials, stream classes used in C++   console stream classes  hierarchy of classes in c++ tutorials  hierarchy of c++ stream classes  Hierarchy for Stream classes