MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Sharp Programming
→
Generics
→
Is it possible for you to prevent an object from b...
1.
Is it possible for you to prevent an object from being created by using zero argument constructor?
A.
Yes
B.
No
Answer» B. No
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
For constructor overloading, each constructor must differ in ___________ and __________
Which among the following is correct for the class defined below?
Which among the following helps to create a temporary instance?
Which object will be created first?
If the object is passed by value to a copy constructor?
Which among the following is true for copy constructor?
In multiple inheritance, if class C inherits two classes A and B as follows, which class constructor will be called first?
If class C inherits class B. And B has inherited class A. Then while creating the object of class C, what will be the sequence of constructors getting called?
Default constructor must be defined, if parameterized constructor is defined and the object is to be created without arguments.
If a programmer defines a class and defines a default value parameterized constructor inside it.He has not defined any default constructor. And then he try to create the object without passing arguments, which among the following will be correct?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies