Answer Posted / amit
WE CAN DEFINE AS MANY CLASSES AS WE WANT.THERE IS NO
RESTRICATION.BUT THERE IS ATLEST ONE CLASS i.e. main()
| Is This Answer Correct ? | 8 Yes | 14 No |
Post New Answer View All Answers
What is multilevel inheritance in oop?
Where You Can Use Interface in your Project
What are different oops concepts?
What is polymorphism explain its types?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is polymorphism give a real life example?
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 is a function in oop?
How to hide the base class functionality in Inheritance?
Can a varargs method be overloaded?
What is the types of inheritance?
What is inheritance and how many types of inheritance?
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.
How to call a non virtual function in the derived class by using base class pointer
Why is abstraction needed?