Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Microeconomics An Intuitive Approach with Calculus
Authors: Thomas Nechyba
1st edition
538453257, 978-0538453257
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App