If we can'nt make the object of abstract class what is the use of defining of data members and non abstract functions in that abstract class?
hi, Diff b/w abstract class and interface are.. Abstract class can have concrete methods also..eventhough if the class doesn't contain any abstract method we can declare that class as an Abstract class. In case of Interface ...
Abstract class is a partially implemented class so, How can we call an abstract method without creating a subclass.
beacuse abstract class has not complte body ie class status is not clear so we cant create object ...
If I write all of concrete methods in one class and all abstract methods in an interface and extend and implement both in third class assume that third class don't extend any other class?
Abstract is most useful when you are creating a framework..take the example of template method pattern which is used in the templates provided by spring framework for the support of jdbc or hibernate it absrtacts out all the common things which needs ...
A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it is a blueprint for a class without
Abstarct Class:Abstract class is a class, which consist at least one pure virtuall function. a pure virtual fuction is a fuction with no body and ia declered with the keyword Virtual and initialised to zero (0). ex: virtual void Display()=0;here ...
Ans:Abstract Class: Instance can not be created. Optionally can have one or more abstract methods but not necessary. Can provide body to Classes. Interface: What a Class must do, But not how-to. Bridge for the communication when the caller does not know ...
Abstrct class has some method who has no body so we cant create object for that whaere as fianal class is lik constant class we cant change the class ie we cant extend the final class so if we have to make anny class as immutable then declare class as ...
What is the difference between Abstract Factory Pattern and factory Pattern? When would you use each of them?
Abstract factory pattern is typically used for giving implementation to specification (eg., jdbc, servlet specifications etc...). Factory pattern is used when you want to defer object creation to later stages (when concrete implementation of that class/interface ...
In which scenerio we use interfaces,abstract and concrete class?Which one is better and appropriate?Differentiate these three terms in depth.
View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Go Top