Question
Write a program that create a base class called input.This class has two int type variable called length and width. It has two virtual function called area() and perimeter(). Create two derived class called square and triangle that inherit input ...
in progress 0
1 month 29 Answers 212 views

Question
Write a program that creates a base class called Base.This class has two integer values named x and y which also contain one virtual function called fun(). There is also a constructor which will take a parameter to assign value ...
in progress 0
1 month 28 Answers 211 views

Question
Create a class call house, which has two attributes(door, window). Create another two class called office and home which also have two attributes respectively table and bed. Now inherit office and home into house. Create an object of class  house ...
in progress 1
2 months 24 Answers 227 views

Question
Simple Program for Inline Function Algorithm/Steps: Step 1: Start the program. Step 2: Declare the class. Step 3: Declare and define the inline function for multiplication and cube. Step 4: Declare the class object and variables. Step 5: Read two values. Step 6: Call the multiplication and ...
in progress 1
4 months 24 Answers 240 views

Question
Create 3 classes named base, derived1,derived2. Here base class is inherited by derived1 and derived2. now write a function named void_print() in the base class which will print the message "in the base class". and then redefined void_print() function in ...
in progress 2
1 month 24 Answers 178 views

Question
Write a program using three classes named cricket,football and badminton where the constructor of each class takes one int and one char value as argument. The constructors contain the message"in cricket clss","in football class","in badminton class"respectively.Complete the program considering the ...
in progress 0
1 month 24 Answers 240 views