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
3 years 24 Answers 464 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
3 years 23 Answers 491 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
3 years 19 Answers 464 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
3 years 29 Answers 459 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
3 years 28 Answers 481 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
3 years 24 Answers 476 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
3 years 24 Answers 460 views