How would you stop a class from class from being derived or
inherited.
Answer Posted / stavanm
By Creating class as a final
final class A{
// code
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why do we use oop?
What is the renewal class?
Is oop better than procedural?
Are polymorphisms mutations?
What are the benefits of polymorphism?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is class and object with example?
what type of question are asked in thoughtworks pair programming round ?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
what is different between oops and c++
What is a superclass in oop?
What are the components of marker interface?
c++ program to swap the objects of two different classes
What is meant by multiple inheritance?
Why is polymorphism important in oop?