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

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
Create an abstract class called Phone. Phone will have only one function called callReceive(). Create a derived class called Landline and Mobile where Landline will define callReceive() so that it will show output "pick up" and similarly Mobile will show ...
in progress 0
1 month 23 Answers 170 views

Question
Write a program by using two classes called A and B where the constructor of each class takes one int and one char type value as an argument and the constructor shows the message "in oop class". Complete the program ...
in progress 0
1 month 19 Answers 203 views

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 210 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