Is it possible to have Virtual Constructor? If yes, how? If
not, Why not possible?
Answers were Sorted based on User's Feedback
Answer / swarupa.othuri1
There is nothing like Virtual Constructor. The Constructor
can’t be virtual as the constructor
is a code which is responsible for creating an instance of a
class and it can’t be delegated to
any other object by virtual keyword means.
| Is This Answer Correct ? | 16 Yes | 3 No |
Answer / mohd waseem
No it is not possible to have a virtual constructor.
Because the constructor is the same as class name and is
used to initialize the data members of class by implicitly
and also explicitly.
| Is This Answer Correct ? | 2 Yes | 0 No |
What are your key skills?
Extra co-curricular activities?
What is AWS Migration service?
Why did you decide to pursue this career?
What the difference between do loop & do while loop?
How many golf balls could you fit into a classic American school bus?
what do your parents think of you?
How would you hedge against the risk of a Greek default?
So, what all you know about the banking sector?
What Is the Purpose of SDLC?
Will you work in our company if we will offer you lower package?
What attracted you to Chevron?
Programming Languages (22694)
Scripts (9273)
Networking (2571)
Microsoft Related (21566)
Databases (16609)
Operating Systems (11983)
Testing (17995)
Servers (1375)
MainFrame (6620)
Java Related (15396)
Middleware (526)
Web Related (7038)
Data Warehouse (8975)
HR Questions (2698)
Software Design (1923)
Debugging (73)
Version Control (464)
Editors (229)
Telecom (1164)
ERP CRM (26474)
Embedded Systems (1221)
Client Server (333)
Artificial Intelligence (3276)
Cryptography (718)
EAI (466)
Multimedia (644)
Software Development Life Cycle (303)
Image Processing (170)
Mobile OS (3116)
Security (125)
Big Data (4325)
Cloud Computing (1789)
Automation (2674)
Internet of Things (IoT) (299)
Apache Related (370)
Frameworks Tools (1329)
Oracle Related (0)