When a method in a subclass has the same name and parameter as a method in the superclass, then it is called____
Overloading
Polymorphism
Overriding
Inheritance
Which of the following is not a correct statement?
Abstract class can be derived or inherited
Abstract class defines at least one pure virtual function
Abstract class can create an object
Abstract class does not contain any definition of implementation
Which one of the following is true?
Constructor will be triggered automatically when an object is created
Destructors will be triggered automatically when an object is created
Constructors have no return type
Constructors perform the dynamic memory de-allocation
Choose the correct answer?
Subclasses can inherit all or some of the characteristics of the superclass
Superclass can inherit all or some of the characteristics of the subclasses
Both are trure
Both are false
How exceptions are handled?
By using a "catch” block
By using a "try” block
By using “catch” block after the “try” block
By using “try” block after the “catch” block
A friend class grants public access privilege to a different class.
Yes
No
Example of exceptions____
Divide by zero
Square root of a negative
Exceeding array limits
All
None of the above
Which of the following is correct for virtual function in C++?
Must be declared in public section of class
Can be accessed using pointers
Must be defined in base class
Can be dynamic
A feature in C++ that enables functions to process any data type is known as___
Class template
Function template
Both
The syntax " type name (parameter1, parameter2, ...) {statements} " can be defined as____
A class
An object
A function
A structure
Answers
Answered by
0
Answer:
download snapsolve app and get answer
are u like my idea
so pls mark me as brainlist and follow me
Similar questions