OOP
Test
Model Test
Ebook
Index
C++ Home
Basic
31
Input and Output
3
Class and Object
12
OOP
4
Libraries and Namespaces
2
Data Structure
1
Schools
Ebook
Question:
If a class x needs to be derived from a class y, which of the following ways is correct to do so?
A
class x: public y
B
class y: public x
C
class x derives public y
D
class y derives public x
Note:
Not available
Show answer
Show Note
Report
Question:
By default, all members of a class have _____ access for all its members.
A
public
B
protected
C
private
D
no access
Note:
Not available
Show answer
Show Note
Report
Question:
A class cannot inherit members from more than one class.
A
True
B
False
Note:
Not available
Show answer
Show Note
Report
Question:
Which type of casting can be used only with pointers and references to objects?
A
dynamic_cast
B
cast
C
Static_cast
D
Pointer_cast
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
Next
Last
/1
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd