What is the differances between a abstract calss and
interface

Answer Posted / abhijit

Abstract base classes can have data members but not interfaces.

Abstract base classes have private access specifier by
default while that of interfaces is public

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2764


Why is encapsulation used?

582


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2110


Which method cannot be overridden?

584


Can we create object of abstract class?

581






What is the point of oop?

662


Why is destructor used?

587


Why do pointers exist?

665


How to improve object oriented design skills?

573


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.

636


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.

2581


What is a superclass in oop?

673


What is inheritance in simple words?

630


What does it mean when someone says I oop?

588


what is the drawback of classical methods in oops?

2924