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 a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1459


What is encapsulation selenium?

554


Plese get me a perfect C++ program for railway/airway reservation with all details.

3429


Why multiple inheritance is not possible?

602






Can you name some types of inheritance?

641


What is the difference between inheritance and polymorphism?

592


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.

2576


When not to use object oriented programming?

572


Which language is not a true object oriented programming language?

645


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.

6486


Why do while loop is used?

577


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1643


What is pure oop?

599


What are oops functions?

585