How implement an abstract class?



Hello,

I want to implement an abstract class with their own attributs that inherit all her subclasses, and her own methods, some implemented and somo not).

Vehicle <----- Car

If I create a class Vehicle and a class Car, there is nothing to avoid someone create a simple Vehicle's object, and then I would have an instance of an abstract class.

Some ideas.

Thanks.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]