C++ Print the info of two Managers using Single Inheritance






 

#include<iostream.h>

class Personal
{
char name[30];
char dob[12];
char bg[3];// bg=blood group
int ln;// ln=license number
void input();
void output();
};
class Professional
{
int idno;
char dpt;// dpt=department
char dsg;// dsg=designation
void input();
void output();
};
void Personal::input
{
gets(name);
gets(dob);
gets(bg);
cin>>ln;
}

Click here for more C++ Programs

info@C++

C++ (pronounced “cee plus plus”).C++ is a general-purpose,powerful programming language.C++ is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. C++ was Developed by Bjarne Stroustrup starting in 1979.C++ adds OOPS-object oriented features such as classes, and other enhancements to the C programming language.


C++ Print the info of two Managers using Single Inheritance
Rate this post




Further Reading:
http://en.wikipedia.org/wiki/Print
http://en.wikipedia.org/wiki/Info
http://en.wikipedia.org/wiki/Two
http://en.wikipedia.org/wiki/Managers
http://en.wikipedia.org/wiki/Using
http://en.wikipedia.org/wiki/Single

You read About: C++ Print the info of two Managers using Single Inheritance

Posted by: Prateek on October 6, 2011


Previous Post: « Next Post: »

© 2017 Trendfy. All rights reserved
Blog Managed by Prateek Jaiswal