Can we have a private constructor ?
Answer Posted / arpitha
no, its of no use having a private constructor,,, bcoz
declaring constructor as private makes it blocked.
| Is This Answer Correct ? | 6 Yes | 24 No |
Post New Answer View All Answers
What exactly is polymorphism?
What is abstraction with example?
What is the example of polymorphism?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is polymorphism and its types?
class type to basic type conversion
What is polymorphism used for?
What is protected in oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is class and object with example?
What is interface in oop?
why reinterpret cast is considered dangerous?
write string class as your own class in java without using any built-in function
what is the sylabus for priliminaries?
What is byval and byref? What are differences between them?