Object Oriented Programming in Java: Attend class lecturers from home by Vaskaran Sarcar

Object Oriented Programming in Java: Attend class lecturers from home by Vaskaran Sarcar

Author:Vaskaran Sarcar [Sarcar, Vaskaran]
Language: eng
Format: epub
Published: 2015-12-20T23:00:00+00:00


}

Output:

Students ask:

Suppose in a class we have 50+ methods and out of that only one is an abstract method. Still we need to mark the class as abstract?

Yes. If a class contains at least one abstract method, the class itself is abstract. You can think from a general point of view-an abstract keyword is used in a sense to represent the incompleteness. So, if your class contains one incomplete method, your class itself is incomplete and hence need to mark by the keyword abstract.

So, the simple formula is: whenever your class has at least an abstract method, your class itself is an abstract class.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.