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
write string class as your own class in java without using any built-in function
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
can we make game by using c
Why is oop useful?
Can you explain polymorphism?
What is pointer in oop?
What does and I oop mean?
write a program that takes input in digits and display the result in words from 1 to 1000
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What are the 4 pillars of oop?
What are properties in oop?
What is stream in oop?
What is encapsulation selenium?
What is abstraction in oop?