OOPs Concepts
Programming and Technical
Programming
Definition
What are base class, sub class and super class?
Read Solution (Total 12)
-
- class A{
}
class B extends A
{
class c{
}
}
where ,class A is called base class or super class
class c is sub class for class B
- 8 years agoHelpfull: Yes(5) No(0)
- using try catch clause
- 10 years agoHelpfull: Yes(1) No(0)
- using exception handling
- 10 years agoHelpfull: Yes(0) No(0)
- by using try and catch concepts..
- 10 years agoHelpfull: Yes(0) No(0)
- using exceptional handling by catch and try block.
- 10 years agoHelpfull: Yes(0) No(0)
- fuction should thrown exception while logical errors as well as getting input as wrong .
- 10 years agoHelpfull: Yes(0) No(0)
- by using the concept of exception handling.
- 10 years agoHelpfull: Yes(0) No(0)
- BASE CLASS~ SUPER CLASS~PARENT CLASS
CHILD CLASS~SUB CLASS~DERIVED CLASS - 9 years agoHelpfull: Yes(0) No(0)
- base class is the class which is in inherited .....and the class in which base class is inherited is called super class
- 8 years agoHelpfull: Yes(0) No(0)
- base class is a class which is inherited .
In java base class is called super class.
Sub class is a derived class from super class(Inherits super class). - 8 years agoHelpfull: Yes(0) No(1)
- base class is the class whose members are inherited by the derived class(sub class).
sub class is the class which inherits the members of the base class.
there is a parent child relationship in base class and sub class.base class is the parent class whose features are inherited by the sub class is the child class.
In JAVA programming language base class is known as super class. - 7 years agoHelpfull: Yes(0) No(1)
- subclass:- the class that inherits propetices from the another class
superclass: the class whose propetices inherited - 5 years agoHelpfull: Yes(0) No(0)
OOPs Concepts Other Question