Can we call a base class method without creating instance?

Answer Posted / nk

Onlu static methods can be called without creating any
instance of the class.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantages of inheritance.

758


Is this job good for future? can do this job post grduate student?

1794


What is an advantage of polymorphism?

703


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

760


What is encapsulation selenium?

636






What is byval and byref? What are differences between them?

1792


What is encapsulation with example?

673


Why is oop better than procedural?

700


What do you mean by variable?

668


Explain virtual inheritance?

780


What is a class and object?

688


What are the 4 main oop principles?

800


What is polymorphism give a real life example?

639


class type to basic type conversion

1940


What is inheritance in oop?

683