T
Tony Johansson
Hello!!
Assume you have two classes one class called Base which is an abstract class
and one
derived class called Derived.
You are not allowed to create an object of class Base like new Base(); or
just Base base;.
But when you instansiate an object of class Derived the constructor in Base
is called implicitly.
Now to my question is it any point to have a constructors in the abstract
class in my example Base.
Many thanks.
//Tony
Assume you have two classes one class called Base which is an abstract class
and one
derived class called Derived.
You are not allowed to create an object of class Base like new Base(); or
just Base base;.
But when you instansiate an object of class Derived the constructor in Base
is called implicitly.
Now to my question is it any point to have a constructors in the abstract
class in my example Base.
Many thanks.
//Tony