Latest Answer: People around me and the mistake i made helped me a lot to character correction(self developmet). ...
Object oriented programming languages directly represent the real life objects. The features of OOPL as inhreitance, polymorphism, encapsulation makes it powerful.
Polymorhism: is a feature of OOPl that at run time depending upon the type of object the appropriate method is called.Inheritance: is a feature of OOPL that represents the "is a" relationship
By using the static method there is no need creating an object of that class to use that method. We can directly call that method on that class. For example, say class A has static function f(), then
Latest Answer: static methods are class methods. in which we can use only static data varibles of any calss of the program. these methods are invoke with out create objects of corresponding the class. ...
virtual methods are used to use the polymorhism feature in C++. Say class A is inherited from class B. If we declare say fuction f() as virtual in class B and override the same function in class A then
Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level?
SELECT Student.name, Student.SIDFROM Student, LevelWHERE Student.SID = Level.SIDAND Level.Level = "freshman"AND Student.Course = 3;
DeadLock.
Class ABC{static final float GRAVITATIONAL_CONSTANT = 9.8;public void getConstant(){system.out.println("Gravitational_Constant: " + GRAVITATIONAL_CONSTANT);}}
Latest Answer: class abc{ final const float PI=3.14f;} ...
Multiple inheritance is a feature in C++ by which one class can be of different types. Say class teachingAssistant is inherited from two classes say teacher and Student.
Latest Answer: A derived class if it inherits from more than one direct base class,it is call multiple inheritance. ...
View page [1] 2 3 4 Next >>

Go Top