what are abstract classes and how they impliment , with
example
Answer Posted / manoj kumar
abstract class is a class which may or may not contain
abstract method.
abstract class can,t be instantiated i.e. we can,t
create object of an abstract class.
abstract class can be subclasses .
abstract class is a class which is declared abstract.
if any class contain abstract method then it can be
declared abstract.
example
abstract class{
abstract public void display();//abstract method
}
abstract method is method which is declared but not
implemented i.e. without braces followed by semicolon.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
#include
What is pure oop?
What is the importance of oop?
How Do you Code Composition and Aggregation in C++ ?
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 many human genes are polymorphic?
Templates mean
What is abstraction in oops?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< 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). Why interface is used? Which is better struts or spring? What are benefits of oop? Why is polymorphism needed? 2. Give the different notations for the class.\