## Program to find first 10 prime numbers – Computer Practical

Prime numbers are natural numbers greater than 1 that has no positive divisors other than 1 and itself. A number that is not a prime is called composite, except 1 because 1 is considered neither a composite nor prime. For instance, 7 is

Constructors Overloading are used to increase the flexibility of a class by having more number of constructor for a single class. By have more than one way of initializing objects can be done using overloading constructors. C++ program to implement

## C++ program Invocation order of Constructor and Destructor in Inheritance – Computer Practical

In this practical we will observe the invocation order of constructor and destructor in inheritance. For instance, If there is one base class and one derieved class with each having their own contructor and destructor then the invocation order is

## C++ program to find area of Triangle, Circle and Rectangle – Computer Practical

In this practical we will write a c++ code to find the area of a triangle, circle or rectangle using function overloading. C++ program to find area of Tiangle, Circle or Rectangle #include<iostream.h> #include<conio.h> const float pi=3.14; float area(float n,float b,float

## C++ program to implement Static Variable and Function – Computer Practical

Static is a keyword in C++ used to give special characteristics to an element. Static elements are allocated storage only once in a program lifetime in static storage area. And they have a scope till the program lifetime. Static variables

## C++ program to implement Inheritance – Computer Practical

Inheritance is one of the key feature of object-oriented programming including C++ which allows user to create a new class (derived class) from a existing class(base class).  The derived class inherits all feature from a base class and it can

## C++ program to implement Multiple Inheritance – Computer Practical

Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit characteristics and features from more than one parent object or parent class. C++ program to implement Multiple Inheritance #include<iostream.h> #include<conio.h> class student