Is there a function in C++ that is equivalent to the function super() in java?

Asked by Last Modified  

3 Answers

Learn Java

Follow 4
Answer

Please enter your answer

empowering young minds to transformative academic journey!

In C++, there is no direct equivalent to Java's super() but similar functionality can be achieved by calling base class constructor
Comments

Experienced Full Stack Developer and Instructor.

In Java, the super() function is used to call the constructor of a superclass from a subclass. In C++, there isn't an exact equivalent function like super(), but the concept is implemented in a different way through constructor initializer lists.
read more
In Java, the super() function is used to call the constructor of a superclass from a subclass. In C++, there isn't an exact equivalent function like super(), but the concept is implemented in a different way through constructor initializer lists. read less
Comments

Computer Science Educator with25 years of teaching experience of onlie and Offline education

No, C++ doesn't have a direct equivalent to Java's super() keyword. However, you can achieve similar functionality by explicitly using the base class name and scope resolution operator (::) to call base class methods or constructors
read more
No, C++ doesn't have a direct equivalent to Java'ssuper()keyword.However, you can achieve similar functionality by explicitly using the base class name and scope resolution operator (::) to call base class methods or constructors read less
Comments

View 1 more Answers

Related Questions

How do I learn Java? From book or internet or a coaching?
According to me....u should start from basic Java..that is core Java... . Find coaching , who teaches Java for beginners.....then later u can go for advance java.
Suresh
0 0
7
Who can provide good Java training with real-time but not institute?
If you reside in pune then i can provide real time programming in java . So you will get to know industry based java programming
Sridevi
0 0
6
Who invented Java language?
James Gosling invented java language
Niranjan
What are the best websites to learn java as well as get a certificate from them?
Blindly go for oracle certification java program .
Abirami
0 0
7

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Puzzle Game coding
import java.awt.BorderLayout;import java.awt.Color;import java.awt.Dimension;import java.awt.Font;import java.awt.FontMetrics;import java.awt.Graphics;import java.awt.Graphics2D;import java.awt.RenderingHints;import...

How To Setup development Environment Of Java?
After installation of JAVA, we need to setup 2 environment variables. First one is JAVA_HOME and second is Path. Below steps to set up Java environment to compile & execute Java programs from command...

Class and Objects in Java
Class is a template or a blueprint which is used to describe an object. On other hand Object is a reference of a class which follows all the stuff written inside the class. How about taking the whole tour in the following video

Design Pattern
Prototype Design Pattern: Ø Prototype pattern refers to creating duplicate object while keeping performance in mind. Ø This pattern involves implementing a prototype interface which tells...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

Recommended Articles

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you