Objects and Classes - General Questions :: Discussion


1.What happens when we try to compile the class definition in following code snippet?
A.It will not compile because class body of Birds is not defined.
B.It will not compile because class body of Peacock is not defined.
C.It will not compile because a class cannot be protectedly inherited from other class.
D.It will compile successfully.
Answer:  Option  D
Explanation:

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers