Home » 
        Aptitude Questions and Answers » 
        C# Aptitude Questions and Answers
    
    C# Inheritance Aptitude Questions and Answers | Set 4
    
    
    
    
        C# Inheritance Aptitude Questions | Set 4: This section contains aptitude questions and answers on C# Inheritance.
        
            Submitted by Nidhi, on April 14, 2020
        
    
       
    
        
        1) Can we implement "hybrid inheritance" without using an interface? 
        
            - Yes
- No
            Correct answer: 2
No
            NO, we cannot implement "hybrid inheritance" without using an interface. 
         
    
   
    
        
        2) Can we implement "hierarchal inheritance" without using the interface?
        
            - Yes
- No
            Correct answer: 1
Yes
            Yes, we can implement "hierarchal inheritance" without using an interface. 
         
    
      
   
    
        
        3) Which is the default superclass of all user-defined class?
        
            - Super
- Class
- Object
- Extend
            Correct answer: 3
Object
            The Object is the default superclass of all user-defined classes.
         
    
   
    
        
        4) Is it true that, a super can have multiple subclasses, but every subclass has only one superclass?
        
            - True
- False
            Correct answer: 1
True
            Yes, it is true, because C# does not support multiple inheritances of classes.
         
    
   
 
    
        
        5) The private members of the superclass can be inherited to subclass?
        
            - Yes
- No
            Correct answer: 2
No
            We cannot inherit private members of the superclass into subclasses.
         
    
   
    
    
    
    
	
    
    
    
  
    Advertisement
    
    
    
  
  
    Advertisement