Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q20/ For Cat and Animal class, the correct way of inheritance is Select one: a. Both are correct way b. class Cat: public Animal c.

Q20/

For Cat and Animal class, the correct way of inheritance is

Select one:

a. Both are correct way

b. class Cat: public Animal

c. None is correct way

d. class Animal: public Cat

Q21/

What happens if a user forgets to define a constructor inside aclass?

Select one:

a. Error occurs

b. Compiler provides a default constructor to avoidfaults/errors

c. Objects are not created properly

d. Segmentation fault

Q22/

Correct way of creating an object of a class called Caris

Select one:

a. lecture obj;

b. student obj;

c. Car =obj;

d. Car obj;

Q23/

base class and derived class relationship comes under

Select one:

a. None

b. Inheritance

c. control statment

d. Polymorphism

Q25/

Which is Abstract Data Type in C++

Select one:

a. float

b. class

c. int

d. array

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

538453257, 978-0538453257

More Books

Students also viewed these Programming questions

Question

What are the key elements of a system investigation report?

Answered: 1 week ago