How would you stop a class from class from being derived or
inherited.
Answer Posted / ravinandan
Make constructor of the class as private.
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
What is protected in oop?
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 an advantage of polymorphism?
Whats is abstraction in oops?
When not to use object oriented programming?
What are the features of oop?
What is the difference between abstraction and polymorphism?
What are the components of marker interface?
What is multilevel inheritance explain with example?
What is the use of oops?
What is encapsulation with example?
What is abstraction with example?
What is the oops and benefits of oops programming?
hi all..i want to know oops concepts clearly can any1 explain??
Is enum a class?