Answer Posted / mugdha taru
Because it is the only function which is accessible even
when class is not instantiateed
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is polymorphism give a real life example?
How do you answer polymorphism?
What are constructors in oop?
What is the real time example of encapsulation?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What are objects in oop?
What is class in oop with example?
Which language is pure oop?
What is the difference between encapsulation and polymorphism?
Can enum be null?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
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.
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is solid in oops?