Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

mcqoptions.com

mcqoptions.com Logo mcqoptions.com Logo

mcqoptions.com Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/Philosophy
  • Recent Questions
  • Most Answered
  • Answers
  • No Answers
  • Most Visited
  • Most Voted
  • Random

mcqoptions.com Latest Questions

Aastha Verma
Aastha Verma
Asked: 3 years agoIn: Inheritance

What should be the structure of a class when it has to be a base class for other classes?

Philosophy
  • 0
  • 1
  • 4
  • 0
Nishtha Kannan
Nishtha Kannan
Asked: 3 years agoIn: Inheritance

Write a C++ to read and display information about employees and managers. Employee is a class that contains employee number, name, address ad department. Manager class contains all information of the employee class and a list of employees working under a manager. 

Philosophy
  • 0
  • 1
  • 5
  • 0
Urvashi Dass
Urvashi Dass
Asked: 3 years agoIn: Inheritance

#include<iostream.h>

class a

{

public: void something()

{ cout<<“a”; }

};

class b

{

public;

void something()

{ cout<<“b”; }

};

class c:public a,public b { };

int main()

{

c x;

x.something();

return 0;

}

(a) a::something() is called

(b) b:: something() is called

(c) Runtime Error

(d) Syntax Error 

Philosophy
  • 0
  • 1
  • 2
  • 0
Mukul Zahir Balakrishnan
Mukul Zahir Balakrishnan
Asked: 3 years agoIn: Inheritance

Create the following class hierarchy in C++.

Philosophy
  • 0
  • 1
  • 5
  • 0
Hina Kaur
Hina Kaur
Asked: 3 years agoIn: Inheritance

When does ambiguity arise in multiple inheritance? How can one resolve it? What are virtual base classes? What is their significance?

Philosophy
  • 0
  • 1
  • 7
  • 0
Rakhi Dash
Rakhi Dash
Asked: 3 years agoIn: Inheritance

Write a declaration for a class Person which has the following: 

  • data members name, phone 
  • set and get functions for every data member 
  • a display function 
  • a destructor

(i) For the Person class above, write each of the constructor, the assignment operator, and the getName member function. Use member initialization lists as often as possible.

(ii) Given the Person class above, write the declaration for a class Spouse that inherits from Person and does the following:

  • has an extra data member spouseName 
  • redefines the display member function.

(iii) For the Spouse class above, write each of the constructors and the display member function. Use member initialization lists as often as possible. 

Philosophy
  • 0
  • 1
  • 2
  • 0
Chand Krishna
Chand Krishna
Asked: 3 years agoIn: Inheritance

Differentiate between public and protected visibility in context of Object Oriented Programming giving suitable examples for each.

Philosophy
  • 0
  • 1
  • 8
  • 0
Sweta Deep
Sweta Deep
Asked: 3 years agoIn: Inheritance

A class One with data members int a and char b inherits from another class Two with data members float f and int x. Write definitions for One and Two for the following situations:

(i) Objects of both the classes are able to access all the data members of both the classes.

(ii) Only the members of class One can access all the data members of both the classes.

Philosophy
  • 0
  • 1
  • 2
  • 0
Qabool Raj Jhaveri
Qabool Raj Jhaveri
Asked: 3 years agoIn: Inheritance

Discuss various reasons that support the concept of inheritance in Object Oriented Languages.

Philosophy
  • 0
  • 1
  • 8
  • 0
Bhola Sibal
Bhola Sibal
Asked: 3 years agoIn: Inheritance

How does the invocation of constructor differ in derivation of class and nesting of classes?

Philosophy
  • 0
  • 1
  • 3
  • 0
Load More Questions

Sidebar

Ask A Question

Stats

  • Questions 500k
  • Answers 393k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Aditi Dugal

    How to approach applying for a job at a company ...

    • 7 Answers
  • Raghavan Prasad Hayer

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Ankita Dinesh Biswas

    What is a programmer’s life like?

    • 5 Answers
  • 47e0c
    47e0c added an answer Correct Answer - Increasing the yield of animals and improving… November 12, 2022 at 9:56 am
  • b6699
    b6699 added an answer Sender\'s addressDateReceivers name and addressSubjectContentYours faithfullyName November 12, 2022 at 9:56 am
  • 10eb8
    10eb8 added an answer Any uncertinity in measurment is known as errorDifference in true… November 12, 2022 at 9:56 am

Top Members

Trending Tags

Class 11 Parabola Polity Polynomials Probability Projectile Protists Quadrilaterals Rario Reasoning Sampling Social Solutions Spectroscopy Switchgear Thermodynamic Tourism Transients Upsc Wbjee

Explore

  • Home
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Tags
  • Badges
  • Users

Footer

mcqoptions.com

About

MCQOptions.com

Here are the top interview questions, example answers, tips for giving the best response.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Follow

© 2022 MCQOptions. All Rights Reserved