Java Programming Lab
Yes,always yes,depends on code no,never static members can't have different values
not mandatory for an static class not mandatory for an derived class not mandatory for an abstract class not mandatory for an parent class
Atmost 1 Atleast 1 Atmost 127 As many as required
Yes,depending on code Yes,always No,never No,if function is not used.
public abstract method(); public abstract void method(); public void method(); None
An abstract class can be extended A subclass of a non-abstract superclass can be abstract An abstract class can be used as a data type All of the above
To prevent developers from further extending the class when it doesn't make sense to have objects of that class Both A and B None
Making atleast one member function as pure virtual functions Making atleast one member function as virtual functions Declaring as Abstract class using virtual function None
Number of score out of 8 = Score in percentage =