Question
Write a C++ Program to define shape class. Derive circle and square classes from 40 shape class. Override area method of shape class in classes circle and square to find the area of respective shapes. Define proper constructor for these classes.
Answer :
Word Count : 95
__________ _____ ________ _______ ______ ________.
____ __________ _______ ______ ____.
_______ ______ __________ _____ _______ __________ __________ __________ __________ ________.
________ ________ ___ ______ _______ _________ ___ ______ _______.
________ ____ _______ _______ ______ _____ _________.
_____ ____ ______ _________ _______ ________ _____ ______ __________ ____ ____ ____.
____ _________ _____ _________ ______ _________.
_______ ________ ___ ___ ______ _______ ______ ___ _____.
____ _________ ____ _______ ___ ______.
_____ __________.
Skip in 10
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
class oper
{
int s,s1,s2,s3,s4,s5;
//cout<<"USE OF AIRHTEMATIC OPERATOR";
public:
void sum(int a,int b)
{
cout<<"USE OF AIRHTEMATIC OPERATOR"<<endl;
s=a+b;
____ __________ _______ ______ ____.
_______ ______ __________ _____ _______ __________ __________ __________ __________ ________.
________ ________ ___ ______ _______ _________ ___ ______ _______.
________ ____ _______ _______ ______ _____ _________.
_____ ____ ______ _________ _______ ________ _____ ______ __________ ____ ____ ____.
____ _________ _____ _________ ______ _________.
_______ ________ ___ ___ ______ _______ ______ ___ _____.
____ _________ ____ _______ ___ ______.
_____ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.