Answer Posted / sujith
Perfect answer by Swapna. Java is not pure object oriented.
Data types are still not objects except String. I think the
only pure object oriented language still is smalltalk,
though i havent explored much with c#.
Is This Answer Correct ? | 45 Yes | 13 No |
Post New Answer View All Answers
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 difference between abstraction and encapsulation?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are different oops concepts?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
What does it mean when someone says I oop?
Give two or more real cenario of virtual function and vertual object
What is destructor in oop?
Why do we use inheritance?
What are the 5 oop principles?
How does polymorphism work?
What does oop mean in snapchat?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
How do you define a class in oop?