look this code which tells we can Create an object for pure virtual function:Class Base{ public: virtual void fun()=0;};class deri:public base{ void fun(){ cout
Abstract class A{void display(){}}class B extends A{void display(){}psvm(String args[]){how can i instantiate the overridden method in class A}}
Skill/Topic: Memory, Abstract Data Types, and AddressesA) ShortB) IntC) floatD) longExplanation: The integer abstract data type group consists of four abstract data types used to reserve memory to store
float ...
1. Abstract class can have method with implementation, interface can only have method definitions2. You can inherit multiple interface but cannot inherit multiple abstract class ...
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.
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 ...
Encapsulation means data hiding+abstraction. In data hiding we will not allow our data to go out directly. Eg. Declaring data members as private is data hiding, where as abstraction means hiding internal implementation is called abstraction. ...
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 ...
View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Go Top