Define Abstract method & class with Example

Answer Posted / ramyathillainathan

We can indicate that a method must always be redefined in a sub class , thus making overriding compulsory. This is done using the modifier keyword abstract in the method definition.
example;
abstract class Shape
{
------------
------------
Abstract void draw();
------------
---------------
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to insert date in the form of yyyy-mm-dd... if any changes happen while inserting date format want to show error meg...any one can solve this..??

1659


why not instantiating servet using new operator?

1494


what is programmable BIST in today ic design

1646


MOV.CB 007H,ADCON1 MOVE.CT 001H,_OPTION_REG_7 MOV.CB 007H,CMCON

1629


Difference between delegates and Events?

1713






hi all, i need ur help in preparing a sql which performs scd2, i mean i have a scd2 mapping i need a sql which can give me same result as scd2 mapping, SRC table: cust_no, loc 01 abc 02 xyz TGT table: pm_ky cust_no loc current_flag 1 01 abc Y 2 02 xyz Y cust 1 has changed his loc to xyz then it loads into TGT table as below, pm_ky cust_no loc current_flag 1 01 abc N 2 02 xyz Y 3 01 xyz Y i need sql to get the above result, hope got me question, Any suggestion will be appreciate.. thanks, Vinod

1644


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1491


When you deliver your C++ headers and C++ library of a class (what all can you change in the class so that application using your class does not need to recompile the code)

726


ok how would i do the following extract from a file i have ssns = 267907230 which are in column 7 into a separate data set then create a 2nd job step to extract from the data set created the following "fund code" which is in column 31 and is 113 into yet another data set

1558


how to remove header and footer in jcl using sort utility

5099


in teradata level primary in table level allows duplicates why?

1643


How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there

1566


qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again

2350


what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

1682


what are other resources are needed for this mantis?

1515