What is differance between Abstract and Interface

Answer Posted / pankaj kumar upadhyay

abstract class contain an abstract function as well asather functions and variableand it must be defind in derived class and here we no create an object,
ex:
an SBI bank which follow the RBI Rules including it own rules.
while an interface class can contain only an abstract function, not any other functions or variables butit also must be defined in derive class .here also we dont create ao object.
ex:
an RBI follow only itself rules

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oops with example?

774


What is meant by oops concept?

612


What is the benefit of oop?

570


How does polymorphism work?

635


What is class and object in oops?

609






What does and I oop and sksksk mean?

650


What are the three main types of variables?

600


What is overloading in oops?

598


What is an example of genetic polymorphism?

650


What is and I oop mean?

618


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1541


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.

2575


What is the types of inheritance?

603


What is polymorphism and its types?

595


What is encapsulation example?

547