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 |
A coworker continually gossips about others. How would you handle it?
Why do you want to join our firm and not any of your core companies
Do you have a passport?
If you were the successful candidate, how much notice would you require to give your current employer?
The "Fatal Flaw" question
What can you do for State Street that other candidates cant?
What is the related proverb for? “Birds of same feather flock together”
when we use the static methods
As a student of Science/Art/Commerce, why did'nt you go for higher studies?
do you have any questions for sherwin williams management?
Are you OK with the bond clause?
Why choose a PSU when you have such good credentials?
Programming Languages (22694)
Scripts (9280)
Networking (2571)
Microsoft Related (21566)
Databases (16615)
Operating Systems (12022)
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 (26424)
Embedded Systems (1221)
Client Server (333)
Artificial Intelligence (3276)
Cryptography (718)
EAI (466)
Multimedia (674)
Software Development Life Cycle (303)
Image Processing (170)
Mobile OS (3116)
Security (125)
Big Data (4325)
Cloud Computing (1790)
Automation (2674)
Internet of Things (IoT) (299)
Apache Related (370)
Frameworks Tools (1329)
Oracle Related (0)