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.

02 Sep 2018
Answer :
Word Count : 95

#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
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU BCSL 32 2016 - Write a C++ Program to define shape class. Derive circle and square cl | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→